summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/ivars.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/ivars.m')
-rw-r--r--test/CodeGenObjC/ivars.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenObjC/ivars.m b/test/CodeGenObjC/ivars.m
new file mode 100644
index 0000000..327b628
--- /dev/null
+++ b/test/CodeGenObjC/ivars.m
@@ -0,0 +1,14 @@
+// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o - %s &&
+// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o - %s
+
+// rdar://6800926
+@interface ITF {
+@public
+ unsigned field :1 ;
+ _Bool boolfield :1 ;
+}
+@end
+
+void foo(ITF *P) {
+ P->boolfield = 1;
+}
OpenPOWER on IntegriCloud