]> granicus.if.org Git - clang/commitdiff
Update test to work with the limited Sema for #pragma weak.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 5 Jun 2009 02:49:06 +0000 (02:49 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 5 Jun 2009 02:49:06 +0000 (02:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72914 91177308-0d34-0410-b5e6-96231b3b80d8

test/Parser/pragma-weak.c

index fdc817628ab5fb10ccf6736a39e09a8cdd3d3764..355a95487b97f706986dd4cec620b97898e1ae9b 100644 (file)
@@ -6,12 +6,12 @@
 int x;
 /* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak
 #pragma weak x
-#pragma weak y
-int y;
 
+extern int z;
 /* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak z = =
 /* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak z =
 #pragma weak z = y
 
+extern int a;
 /* expected-warning {{extra tokens at end of '#pragma weak'}}*/ #pragma weak a b
 /* expected-warning {{extra tokens at end of '#pragma weak'}}*/ #pragma weak a = x c