John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s |
David Chisnall | 64fd7e8 | 2010-06-04 01:10:52 +0000 | [diff] [blame] | 2 | // RUN: grep "ib1b14" %t | count 1 |
David Chisnall | 11d3f4c | 2012-07-03 20:49:52 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-runtime=gcc -emit-llvm -o %t %s |
David Chisnall | 64fd7e8 | 2010-06-04 01:10:52 +0000 | [diff] [blame] | 4 | // RUN: grep "ib32i1b33i14" %t | count 1 |
| 5 | |
| 6 | struct foo{ |
| 7 | int a; |
| 8 | int b:1; |
| 9 | int c:14; |
| 10 | }; |
| 11 | |
| 12 | const char *encoding = @encode(struct foo); |