aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/tentative-decls.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/tentative-decls.c')
-rw-r--r--test/Sema/tentative-decls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Sema/tentative-decls.c b/test/Sema/tentative-decls.c
index fc0d50086e..ea8d622551 100644
--- a/test/Sema/tentative-decls.c
+++ b/test/Sema/tentative-decls.c
@@ -27,7 +27,10 @@ extern int i1; // expected-note {{previous definition is here}}
static int i1; // expected-error{{static declaration of 'i1' follows non-static declaration}}
static int i2 = 5; // expected-note 1 {{previous definition is here}}
-int i2 = 3; // expected-error{{redefinition of 'i2'}}
+int i2 = 3; // expected-error{{non-static declaration of 'i2' follows static declaration}}
+
+static int i3 = 5;
+extern int i3;
__private_extern__ int pExtern;
int pExtern = 0;