aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/pragma-ms_struct.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-04-26 17:54:40 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-04-26 17:54:40 +0000
commitc1a0a73c1fad684dd23e9aade02c4e00dbaeaee6 (patch)
tree212dc5afb8f8058e869f0b63e0f11d20f38e3883 /test/Sema/pragma-ms_struct.c
parent8a285ae6fc4926cc4e419025eec63e2d6696e13f (diff)
Add ms_struct attribute on record typee
(and ignore it for now) - wip. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/pragma-ms_struct.c')
-rw-r--r--test/Sema/pragma-ms_struct.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Sema/pragma-ms_struct.c b/test/Sema/pragma-ms_struct.c
index 61047c0309..b2c2684c61 100644
--- a/test/Sema/pragma-ms_struct.c
+++ b/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;
+
+