[cfe-commits] r72914 - /cfe/trunk/test/Parser/pragma-weak.c
Eli Friedman
eli.friedman at gmail.com
Thu Jun 4 19:49:06 PDT 2009
Author: efriedma
Date: Thu Jun 4 21:49:06 2009
New Revision: 72914
URL: http://llvm.org/viewvc/llvm-project?rev=72914&view=rev
Log:
Update test to work with the limited Sema for #pragma weak.
Modified:
cfe/trunk/test/Parser/pragma-weak.c
Modified: cfe/trunk/test/Parser/pragma-weak.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/pragma-weak.c?rev=72914&r1=72913&r2=72914&view=diff
==============================================================================
--- cfe/trunk/test/Parser/pragma-weak.c (original)
+++ cfe/trunk/test/Parser/pragma-weak.c Thu Jun 4 21:49:06 2009
@@ -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
More information about the cfe-commits
mailing list