aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/bitfield-gnu.m
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-12-26 20:12:30 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-12-26 20:12:30 +0000
commitc7ff82c2040f45eaad2eddea0e4461dddc972cd1 (patch)
tree310e54b9178d50b374f5dd10f39a2a7932355f54 /test/CodeGenObjC/bitfield-gnu.m
parent3f59c975aa5d047f7edd1b900b5e885c38af0ef7 (diff)
Fix for PR8695.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/bitfield-gnu.m')
-rw-r--r--test/CodeGenObjC/bitfield-gnu.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGenObjC/bitfield-gnu.m b/test/CodeGenObjC/bitfield-gnu.m
new file mode 100644
index 0000000000..7935bdaacf
--- /dev/null
+++ b/test/CodeGenObjC/bitfield-gnu.m
@@ -0,0 +1,5 @@
+// RUN: %clang -S -emit-llvm -fgnu-runtime -o %t %s
+typedef enum { A1, A2 } A;
+typedef struct { A a : 1; } B;
+@interface Obj { B *b; } @end
+@implementation Obj @end