aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/dll-4.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/dll-4.c')
-rw-r--r--gcc/testsuite/gcc.dg/dll-4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/dll-4.c b/gcc/testsuite/gcc.dg/dll-4.c
index 45ed7a1..9fcc8e9 100644
--- a/gcc/testsuite/gcc.dg/dll-4.c
+++ b/gcc/testsuite/gcc.dg/dll-4.c
@@ -3,10 +3,10 @@
/* { dg-do compile { target i?86-pc-mingw* } } */
__declspec (dllimport) int foo1;
-int foo1;
+int foo1; /* { dg-warning "redeclared without dllimport" } */
__declspec (dllimport) int foo2;
-int foo2 = 5;
+int foo2 = 5; /* { dg-warning "redeclared without dllimport" } */
int f () { return foo1 + foo2; }