diff options
author | Nico Weber <nicolasweber@gmx.de> | 2017-05-05 17:05:56 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2017-05-05 17:05:56 +0000 |
commit | 4b565c44e9cad8c62d100fe67c39a68cfb065253 (patch) | |
tree | 18fca70fd81d5000e5f669ecafce61cfa87f66e0 /test/Parser | |
parent | 90500c1350ce925c24aa3da49b42657140999764 (diff) |
Warn that the [] spelling of uuid(...) is deprecated.
https://reviews.llvm.org/D32879
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/MicrosoftExtensions.cpp | 2 | ||||
-rw-r--r-- | test/Parser/ms-square-bracket-attributes.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/MicrosoftExtensions.cpp b/test/Parser/MicrosoftExtensions.cpp index 830412ed47..74f4bb3268 100644 --- a/test/Parser/MicrosoftExtensions.cpp +++ b/test/Parser/MicrosoftExtensions.cpp @@ -60,7 +60,7 @@ struct struct_without_uuid { }; struct __declspec(uuid("000000A0-0000-0000-C000-000000000049")) struct_with_uuid2; -[uuid("000000A0-0000-0000-C000-000000000049")] struct struct_with_uuid3; +[uuid("000000A0-0000-0000-C000-000000000049")] struct struct_with_uuid3; // expected-warning{{specifying 'uuid' as an ATL attribute is deprecated; use __declspec instead}} struct struct_with_uuid2 {} ; diff --git a/test/Parser/ms-square-bracket-attributes.mm b/test/Parser/ms-square-bracket-attributes.mm index 98b2f6c2d3..a158cf7b2b 100644 --- a/test/Parser/ms-square-bracket-attributes.mm +++ b/test/Parser/ms-square-bracket-attributes.mm @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -std=c++14 -verify -fms-extensions %s +// RUN: %clang_cc1 -fsyntax-only -std=c++14 -verify -fms-extensions %s -Wno-deprecated-declarations typedef struct _GUID { unsigned long Data1; |