diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-11-27 19:16:55 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-11-27 19:16:55 +0000 |
commit | 17046b8506e97b88db1d0269ed94715a2508e0cc (patch) | |
tree | f4dd6bef74a3177a863c5eedbd5fd85fa701651d /clang/test/Sema/pragma-ms_struct.c | |
parent | ccb8f16891abaad00d68f756cd7e41236299a708 (diff) | |
download | bcm5719-llvm-17046b8506e97b88db1d0269ed94715a2508e0cc.tar.gz bcm5719-llvm-17046b8506e97b88db1d0269ed94715a2508e0cc.zip |
Automated checking for C++ when determining what argument to send to the diagnostic for attribute subjects. In turn, this allows the Subjects to be enabled for some more attributes and improves diagnostics. Updated a test case based on the improved diagnostic.
llvm-svn: 195864
Diffstat (limited to 'clang/test/Sema/pragma-ms_struct.c')
-rw-r--r-- | clang/test/Sema/pragma-ms_struct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/pragma-ms_struct.c b/clang/test/Sema/pragma-ms_struct.c index 14e7fde8b98..8cce4d79811 100644 --- a/clang/test/Sema/pragma-ms_struct.c +++ b/clang/test/Sema/pragma-ms_struct.c @@ -25,7 +25,7 @@ struct { } __attribute__((__ms_struct__)) t1; struct S { - double __attribute__((ms_struct)) d; // expected-warning {{'ms_struct' attribute only applies to struct, union or class}} + double __attribute__((ms_struct)) d; // expected-warning {{'ms_struct' attribute only applies to struct or union}} unsigned long bf_1 : 12; unsigned long : 0; unsigned long bf_2 : 12; @@ -36,7 +36,7 @@ enum A = 0, B, C -} __attribute__((ms_struct)) e1; // expected-warning {{'ms_struct' attribute only applies to struct, union or class}} +} __attribute__((ms_struct)) e1; // expected-warning {{'ms_struct' attribute only applies to struct or union}} // rdar://10513599 #pragma ms_struct on |