[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Lexer / utf8-invalid.c
blob2657b54c374efed28dd57719a556b35c65288b20
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -E %s -o /dev/null
4 // Note: This file deliberately contains invalid UTF-8. Please do not fix!
6 extern int ‚x; // expected-error{{source file is not valid UTF-8}}
8 #if 0
9 // Don't warn about bad UTF-8 in raw lexing mode.
10 extern int ‚x;
11 #endif
13 // Don't warn about bad UTF-8 in preprocessor directives.
14 #define x82 ‚
15 #pragma mark ‚