summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/dllimport-dllexport.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/dllimport-dllexport.c')
-rw-r--r--clang/test/Sema/dllimport-dllexport.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/dllimport-dllexport.c b/clang/test/Sema/dllimport-dllexport.c
index 00c9df594b6..80810d696e8 100644
--- a/clang/test/Sema/dllimport-dllexport.c
+++ b/clang/test/Sema/dllimport-dllexport.c
@@ -41,3 +41,8 @@ void __attribute__((dllexport)) foo13();
extern int foo14 __attribute__((dllexport));
extern int foo14 __attribute__((dllimport)); // expected-warning{{dllimport attribute ignored}}
+
+__declspec(dllimport) int foo15 = 54; // expected-warning{{'dllimport' attribute cannot be specified on a definition}}
+
+extern __declspec(dllimport) int foo17;
+int foo17 = 54; // expected-warning{{'dllimport' attribute cannot be specified on a definition}}
OpenPOWER on IntegriCloud