summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx_exprs.h
diff options
context:
space:
mode:
authorSam Weinig <sam.weinig@gmail.com>2010-02-07 04:44:10 +0000
committerSam Weinig <sam.weinig@gmail.com>2010-02-07 04:44:10 +0000
commitdb3758c40d39cb40a13aae2c476f2a28fb735c48 (patch)
tree6ed3f27bafbbba5c26a34991495a18929a1beb01 /clang/test/PCH/cxx_exprs.h
parentcee2d2f016c2f8bd7cb7bdc7258c10c0b969ecbb (diff)
downloadbcm5719-llvm-db3758c40d39cb40a13aae2c476f2a28fb735c48.tar.gz
bcm5719-llvm-db3758c40d39cb40a13aae2c476f2a28fb735c48.zip
Add PCH support for CXXBoolLiteralExpr and CXXNullPtrLiteralExpr.
llvm-svn: 95513
Diffstat (limited to 'clang/test/PCH/cxx_exprs.h')
-rw-r--r--clang/test/PCH/cxx_exprs.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/clang/test/PCH/cxx_exprs.h b/clang/test/PCH/cxx_exprs.h
index b6494284941..a871aa201f1 100644
--- a/clang/test/PCH/cxx_exprs.h
+++ b/clang/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;
OpenPOWER on IntegriCloud