Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1 |
Ted Kremenek | 9f3d942 | 2007-09-26 20:14:22 +0000 | [diff] [blame] | 2 | // RUN: clang -parse-ast -verify -pedantic %s |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 3 | |
| 4 | char (((( /* expected-error {{to match this '('}} */ |
| 5 | *X x ] )))); /* expected-error {{expected ')'}} */ |
| 6 | |
| 7 | ; // expected-warning {{ISO C does not allow an extra ';' outside of a function}} |