diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-04-26 17:54:40 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-04-26 17:54:40 +0000 |
commit | 6b4e26bee27900eaa3c94e8cef5458a991bb2c1d (patch) | |
tree | 988a053cc6a5c55f367095cf7e69146b652b97d0 /clang/test/Sema/pragma-ms_struct.c | |
parent | a9b630e4d7e6a27e6996956befdc0eccfcf5cc72 (diff) | |
download | bcm5719-llvm-6b4e26bee27900eaa3c94e8cef5458a991bb2c1d.tar.gz bcm5719-llvm-6b4e26bee27900eaa3c94e8cef5458a991bb2c1d.zip |
Add ms_struct attribute on record typee
(and ignore it for now) - wip.
llvm-svn: 130224
Diffstat (limited to 'clang/test/Sema/pragma-ms_struct.c')
-rw-r--r-- | clang/test/Sema/pragma-ms_struct.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Sema/pragma-ms_struct.c b/clang/test/Sema/pragma-ms_struct.c index 61047c03098..b2c2684c619 100644 --- a/clang/test/Sema/pragma-ms_struct.c +++ b/clang/test/Sema/pragma-ms_struct.c @@ -17,3 +17,18 @@ struct foo char c; }; + +struct { + unsigned long bf_1 : 12; + unsigned long : 0; + unsigned long bf_2 : 12; +} __attribute__((__ms_struct__)) t1; + +struct S { + double __attribute__((ms_struct)) d; // expected-warning {{'ms_struct' attribute ignored}} + unsigned long bf_1 : 12; + unsigned long : 0; + unsigned long bf_2 : 12; +} __attribute__((ms_struct)) t2; + + |