summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/dllimport.c
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-07-22 23:54:51 +0000
committerHans Wennborg <hans@hanshq.net>2015-07-22 23:54:51 +0000
commit0106479fa83bd655bb6a69f4a305530c6d5290ce (patch)
tree072ec81fdd178660d6a533b87649bf02840ead35 /clang/test/Sema/dllimport.c
parent38e874e4877067c28266b11b910333e395123b39 (diff)
downloadbcm5719-llvm-0106479fa83bd655bb6a69f4a305530c6d5290ce.tar.gz
bcm5719-llvm-0106479fa83bd655bb6a69f4a305530c6d5290ce.zip
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
Diffstat (limited to 'clang/test/Sema/dllimport.c')
-rw-r--r--clang/test/Sema/dllimport.c2
1 files changed, 1 insertions, 1 deletions
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}}
OpenPOWER on IntegriCloud