diff options
Diffstat (limited to 'test/Sema/dllexport.c')
-rw-r--r-- | test/Sema/dllexport.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Sema/dllexport.c b/test/Sema/dllexport.c index 7991a455b4de..2e0fe0ce114a 100644 --- a/test/Sema/dllexport.c +++ b/test/Sema/dllexport.c @@ -5,17 +5,17 @@ // Invalid usage. __declspec(dllexport) typedef int typedef1; -// expected-warning@-1{{'dllexport' attribute only applies to variables and functions}} +// expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Objective-C interfaces}} typedef __declspec(dllexport) int typedef2; -// expected-warning@-1{{'dllexport' attribute only applies to variables and functions}} +// expected-warning@-1{{'dllexport' attribute only applies to}} typedef int __declspec(dllexport) typedef3; -// expected-warning@-1{{'dllexport' attribute only applies to variables and functions}} +// expected-warning@-1{{'dllexport' attribute only applies to}} typedef __declspec(dllexport) void (*FunTy)(); -// expected-warning@-1{{'dllexport' attribute only applies to variables and functions}} +// expected-warning@-1{{'dllexport' attribute only applies to}} enum __declspec(dllexport) Enum { EnumVal }; -// expected-warning@-1{{'dllexport' attribute only applies to variables and functions}} +// expected-warning@-1{{'dllexport' attribute only applies to}} struct __declspec(dllexport) Record {}; -// expected-warning@-1{{'dllexport' attribute only applies to variables and functions}} +// expected-warning@-1{{'dllexport' attribute only applies to}} |