blob: 1ccfa36345c5e1d8c1fda1a37e67c9592ec68e1e [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s
2// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -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