diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 4 | ||||
-rw-r--r-- | test/PCH/cxx_exprs.cpp | 4 | ||||
-rw-r--r-- | test/PCH/cxx_exprs.h | 13 |
3 files changed, 18 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile index e9d89454b8..40170e42ff 100644 --- a/test/Makefile +++ b/test/Makefile @@ -16,9 +16,9 @@ TESTDIRS += $(EXTRA_TESTDIRS) ifndef TESTARGS ifdef VERBOSE -TESTARGS = -v +TESTARGS = -v -j16 else -TESTARGS = -s -v +TESTARGS = -s -v -j16 endif endif diff --git a/test/PCH/cxx_exprs.cpp b/test/PCH/cxx_exprs.cpp index 0f0fe88dc5..ec7041b984 100644 --- a/test/PCH/cxx_exprs.cpp +++ b/test/PCH/cxx_exprs.cpp @@ -33,3 +33,7 @@ static_assert(!false_value, "false_value is false"); // CXXNullPtrLiteralExpr cxx_null_ptr_result null_ptr = nullptr; + +// CXXTypeidExpr +typeid_result1 typeid_1 = 0; +typeid_result2 typeid_2 = 0;
\ No newline at end of file diff --git a/test/PCH/cxx_exprs.h b/test/PCH/cxx_exprs.h index 6766842f0a..4f01b3aff6 100644 --- a/test/PCH/cxx_exprs.h +++ b/test/PCH/cxx_exprs.h @@ -1,5 +1,6 @@ // Header for PCH test cxx_exprs.cpp + // CXXStaticCastExpr typedef __typeof__(static_cast<void *>(0)) static_cast_result; @@ -31,4 +32,14 @@ typedef __typeof__(nullptr) cxx_null_ptr_result; void foo(Derived *P) { // CXXMemberCallExpr P->f(); -}
\ No newline at end of file +} + + +// FIXME: This is a hack until <typeinfo> works completely. +namespace std { + class type_info {}; +} + +// CXXTypeidExpr - Both expr and type forms. +typedef __typeof__(typeid(int))* typeid_result1; +typedef __typeof__(typeid(2))* typeid_result2; |