blob: 98c39b7a844b3db4e3bb6d7ad26c3ad3b023789d [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -emit-llvm -o - %s
2// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -o - %s
Argyrios Kyrtzidis0dc75092010-09-06 12:00:10 +00003// RUN: %clang_cc1 -fobjc-gc -emit-llvm -o - %s
Chris Lattner51123fe2009-04-17 17:46:19 +00004
5// rdar://6800926
6@interface ITF {
7@public
8 unsigned field :1 ;
9 _Bool boolfield :1 ;
10}
11@end
12
13void foo(ITF *P) {
14 P->boolfield = 1;
15}
Argyrios Kyrtzidis0dc75092010-09-06 12:00:10 +000016
17// rdar://8368320
18@interface R {
19 struct {
20 union {
21 int x;
22 char c;
23 };
24 } _union;
25}
26@end
27
28@implementation R
29@end