diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-02-16 09:31:36 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-02-16 09:31:36 +0000 |
commit | fd035e6496665b1f1197868e21cb0a4594e8db6e (patch) | |
tree | 53010172e19c77ea447bcd89e117cda052ab52e0 /test/PCH/cxx_exprs.h | |
parent | 2fce988e86bc01829142e4362d4eff1af0925147 (diff) | |
download | FreeBSD-src-fd035e6496665b1f1197868e21cb0a4594e8db6e.zip FreeBSD-src-fd035e6496665b1f1197868e21cb0a4594e8db6e.tar.gz |
Update clang to r96341.
Diffstat (limited to 'test/PCH/cxx_exprs.h')
-rw-r--r-- | test/PCH/cxx_exprs.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/test/PCH/cxx_exprs.h b/test/PCH/cxx_exprs.h index b649428..a871aa2 100644 --- a/test/PCH/cxx_exprs.h +++ b/test/PCH/cxx_exprs.h @@ -1,21 +1,29 @@ // Header for PCH test cxx_exprs.cpp // CXXStaticCastExpr -typedef typeof(static_cast<void *>(0)) static_cast_result; +typedef __typeof__(static_cast<void *>(0)) static_cast_result; // CXXDynamicCastExpr struct Base { virtual void f(); }; struct Derived : Base { }; Base *base_ptr; -typedef typeof(dynamic_cast<Derived *>(base_ptr)) dynamic_cast_result; +typedef __typeof__(dynamic_cast<Derived *>(base_ptr)) dynamic_cast_result; // CXXReinterpretCastExpr -typedef typeof(reinterpret_cast<void *>(0)) reinterpret_cast_result; +typedef __typeof__(reinterpret_cast<void *>(0)) reinterpret_cast_result; // CXXConstCastExpr const char *const_char_ptr_value; -typedef typeof(const_cast<char *>(const_char_ptr_value)) const_cast_result; +typedef __typeof__(const_cast<char *>(const_char_ptr_value)) const_cast_result; // CXXFunctionalCastExpr int int_value; -typedef typeof(double(int_value)) functional_cast_result; +typedef __typeof__(double(int_value)) functional_cast_result; + +// CXXBoolLiteralExpr +typedef __typeof__(true) bool_literal_result; +const bool true_value = true; +const bool false_value = false; + +// CXXNullPtrLiteralExpr +typedef __typeof__(nullptr) cxx_null_ptr_result; |