From 0106479fa83bd655bb6a69f4a305530c6d5290ce Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 22 Jul 2015 23:54:51 +0000 Subject: Downgrade error about adding 'dllimport' to used free function to warning (PR24215) The code will still work as it can reference the function via its thunk. llvm-svn: 242973 --- clang/test/Sema/dllimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/dllimport.c') diff --git a/clang/test/Sema/dllimport.c b/clang/test/Sema/dllimport.c index 3ca1baa299c..d81aecd604c 100644 --- a/clang/test/Sema/dllimport.c +++ b/clang/test/Sema/dllimport.c @@ -143,7 +143,7 @@ __declspec(dllimport) void redecl3(); // expected-note{{previous declaration is void redecl4(); // expected-note{{previous declaration is here}} void useRedecl4() { redecl4(); } -__declspec(dllimport) void redecl4(); // expected-error{{redeclaration of 'redecl4' cannot add 'dllimport' attribute}} +__declspec(dllimport) void redecl4(); // expected-warning{{redeclaration of 'redecl4' should not add 'dllimport' attribute}} // Allow with a warning if the decl hasn't been used yet. void redecl5(); // expected-note{{previous declaration is here}} -- cgit v1.2.3