diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-05 02:49:06 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-05 02:49:06 +0000 |
commit | 1dbe36ad5c916ddc51bfdae9831099bcd91ec64c (patch) | |
tree | a9cdf98aae11aa4b2b453b28e3e3c9507ff1348e /test/Parser | |
parent | f4e2a2ce1101d875c4b69294416438007947daeb (diff) |
Update test to work with the limited Sema for #pragma weak.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/pragma-weak.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/pragma-weak.c b/test/Parser/pragma-weak.c index fdc817628a..355a95487b 100644 --- a/test/Parser/pragma-weak.c +++ b/test/Parser/pragma-weak.c @@ -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 |