diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-11-24 21:35:16 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-11-24 21:35:16 +0000 |
| commit | df8fe4c91cf2ba8a2ede933aab0f138b7d2fd673 (patch) | |
| tree | 7b6954a946b64e8fefac0ffd904cec99dd811efa /clang/test/Sema | |
| parent | 60e705e648af7fb3c962c68edc40468a6439be8a (diff) | |
| download | bcm5719-llvm-df8fe4c91cf2ba8a2ede933aab0f138b7d2fd673.tar.gz bcm5719-llvm-df8fe4c91cf2ba8a2ede933aab0f138b7d2fd673.zip | |
__declspec(uuid) is only supported for C++ code according to MSDN (as well as behaviorally in MSVC). This adds a generic diagnostic that we use for uuid, and can use for some other attributes as well, and adds a testcase.
llvm-svn: 195580
Diffstat (limited to 'clang/test/Sema')
| -rw-r--r-- | clang/test/Sema/MicrosoftExtensions.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/test/Sema/MicrosoftExtensions.c b/clang/test/Sema/MicrosoftExtensions.c index a6caf7acb8a..e672d05d090 100644 --- a/clang/test/Sema/MicrosoftExtensions.c +++ b/clang/test/Sema/MicrosoftExtensions.c @@ -20,10 +20,7 @@ struct D { int D[]; }; - - - - +struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown {}; /* expected-error {{'uuid' attribute is not supported in C}} */ typedef struct notnested { long bad1; |

