aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx_exprs.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/cxx_exprs.h')
-rw-r--r--test/PCH/cxx_exprs.h13
1 files changed, 12 insertions, 1 deletions
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;