Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // 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 Kyrtzidis | 0dc7509 | 2010-09-06 12:00:10 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -fobjc-gc -emit-llvm -o - %s |
Chris Lattner | 51123fe | 2009-04-17 17:46:19 +0000 | [diff] [blame] | 4 | |
| 5 | // rdar://6800926 |
| 6 | @interface ITF { |
| 7 | @public |
| 8 | unsigned field :1 ; |
| 9 | _Bool boolfield :1 ; |
| 10 | } |
| 11 | @end |
| 12 | |
| 13 | void foo(ITF *P) { |
| 14 | P->boolfield = 1; |
| 15 | } |
Argyrios Kyrtzidis | 0dc7509 | 2010-09-06 12:00:10 +0000 | [diff] [blame] | 16 | |
| 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 |