From 461a67fa15370a9ec88f8f8a240bf7c123bb2029 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:11:37 +0000 Subject: Vendor import of clang trunk r321017: https://llvm.org/svn/llvm-project/cfe/trunk@321017 --- test/SemaObjC/dllimport.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/SemaObjC/dllimport.m') diff --git a/test/SemaObjC/dllimport.m b/test/SemaObjC/dllimport.m index b8360773c69b..ea87aea9b8da 100644 --- a/test/SemaObjC/dllimport.m +++ b/test/SemaObjC/dllimport.m @@ -1,17 +1,17 @@ // RUN: %clang_cc1 -triple i686-windows -fdeclspec -fsyntax-only -verify %s __declspec(dllimport) typedef int typedef1; -// expected-warning@-1{{'dllimport' attribute only applies to functions, variables, and Objective-C interfaces}} +// expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Objective-C interfaces}} typedef __declspec(dllimport) int typedef2; -// expected-warning@-1{{'dllimport' attribute only applies to functions, variables, and Objective-C interfaces}} +// expected-warning@-1{{'dllimport' attribute only applies to}} typedef int __declspec(dllimport) typedef3; -// expected-warning@-1{{'dllimport' attribute only applies to functions, variables, and Objective-C interfaces}} +// expected-warning@-1{{'dllimport' attribute only applies to}} typedef __declspec(dllimport) void (*FunTy)(); -// expected-warning@-1{{'dllimport' attribute only applies to functions, variables, and Objective-C interfaces}} +// expected-warning@-1{{'dllimport' attribute only applies to}} enum __declspec(dllimport) E { Val }; -// expected-warning@-1{{'dllimport' attribute only applies to functions, variables, and Objective-C interfaces}} +// expected-warning@-1{{'dllimport' attribute only applies to}} struct __declspec(dllimport) Record {}; -// expected-warning@-1{{'dllimport' attribute only applies to functions, variables, and Objective-C interfaces}} +// expected-warning@-1{{'dllimport' attribute only applies to}} __declspec(dllimport) __attribute__((__objc_root_class__)) -- cgit v1.2.3