blob: fdc817628ab5fb10ccf6736a39e09a8cdd3d3764 [file] [log] [blame]
Eli Friedman29b1d072009-06-05 00:50:43 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3// Note that this puts the expected lines before the directives to work around
4// limitations in the -verify mode.
5
6int x;
7/* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak
8#pragma weak x
9#pragma weak y
10int y;
11
12/* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak z = =
13/* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak z =
14#pragma weak z = y
15
16/* expected-warning {{extra tokens at end of '#pragma weak'}}*/ #pragma weak a b
17/* expected-warning {{extra tokens at end of '#pragma weak'}}*/ #pragma weak a = x c