summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-13 20:00:38 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-13 20:00:38 +0000
commitf10c97f36e0e367d654a8f8df5e14c3d524e1a40 (patch)
treeba44277cd2e1020fac885b5e69456200012c0c0e /clang/test/CodeGenObjC
parent1e7db68774fd04ebfea4b92517c96ffa108739e0 (diff)
downloadbcm5719-llvm-f10c97f36e0e367d654a8f8df5e14c3d524e1a40.tar.gz
bcm5719-llvm-f10c97f36e0e367d654a8f8df5e14c3d524e1a40.zip
_Bool is not a keyword in C++. Fixes PR7388 and PR8349.
llvm-svn: 116422
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/ivar-layout-64-bitfields.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/ivar-layout-64-bitfields.m b/clang/test/CodeGenObjC/ivar-layout-64-bitfields.m
index 9710e16172d..700ce18d74c 100644
--- a/clang/test/CodeGenObjC/ivar-layout-64-bitfields.m
+++ b/clang/test/CodeGenObjC/ivar-layout-64-bitfields.m
@@ -1,5 +1,10 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
+
+#ifdef __cplusplus
+typedef bool _Bool;
+#endif
+
@interface I
{
struct {
OpenPOWER on IntegriCloud