diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-05-09 06:03:39 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-05-09 06:03:39 +0000 |
| commit | 13a5ecc6ff941c3056f2cf6c86aa2b07c6164d89 (patch) | |
| tree | dbcafb74d44252231baccd12e7a577eec4e86e4f /clang/test/PCH/cxx_exprs.h | |
| parent | 2760216c89acf3786ce712a5815b9cbf376ca970 (diff) | |
| download | bcm5719-llvm-13a5ecc6ff941c3056f2cf6c86aa2b07c6164d89.tar.gz bcm5719-llvm-13a5ecc6ff941c3056f2cf6c86aa2b07c6164d89.zip | |
pch'ify typeid.
llvm-svn: 103374
Diffstat (limited to 'clang/test/PCH/cxx_exprs.h')
| -rw-r--r-- | clang/test/PCH/cxx_exprs.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/clang/test/PCH/cxx_exprs.h b/clang/test/PCH/cxx_exprs.h index 6766842f0a2..4f01b3aff63 100644 --- a/clang/test/PCH/cxx_exprs.h +++ b/clang/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; |

