Jordan Rose | c7629d9 | 2013-01-24 20:50:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Jordan Rose | 20afc29 | 2013-01-30 19:21:12 +0000 | [diff] [blame^] | 2 | // RUN: %clang_cc1 -E %s -o /dev/null |
Jordan Rose | c7629d9 | 2013-01-24 20:50:46 +0000 | [diff] [blame] | 3 | |
| 4 | // Note: this file contains invalid UTF-8 before the variable name in the |
| 5 | // next line. Please do not fix! |
| 6 | |
| 7 | extern int x; // expected-error{{source file is not valid UTF-8}} |
Jordan Rose | 20afc29 | 2013-01-30 19:21:12 +0000 | [diff] [blame^] | 8 | |
| 9 | #if 0 |
| 10 | // Don't warn about bad UTF-8 in raw lexing mode. |
| 11 | extern int x; |
| 12 | #endif |