summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/tentative-decls.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/tentative-decls.c')
-rw-r--r--clang/test/Sema/tentative-decls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/tentative-decls.c b/clang/test/Sema/tentative-decls.c
index 0c390fe4144..6e79a0868fd 100644
--- a/clang/test/Sema/tentative-decls.c
+++ b/clang/test/Sema/tentative-decls.c
@@ -18,6 +18,9 @@ extern int i1; // expected-error{{previous definition is here}}
static int i1; // expected-error{{static declaration of 'i1' follows non-static declaration}} expected-error{{previous definition is here}}
int i1 = 3; // expected-error{{non-static declaration of 'i1' follows static declaration}}
+__private_extern__ int pExtern;
+int pExtern = 0;
+
void func() {
extern int i1; // expected-error{{previous definition is here}}
static int i1; // expected-error{{static declaration of 'i1' follows non-static declaration}}
OpenPOWER on IntegriCloud