utf8-invalid.c 393 B

123456789101112131415
  1. // RUN: %clang_cc1 -fsyntax-only -verify %s
  2. // RUN: %clang_cc1 -E %s -o /dev/null
  3. // Note: This file deliberately contains invalid UTF-8. Please do not fix!
  4. extern int ‚x; // expected-error{{source file is not valid UTF-8}}
  5. #if 0
  6. // Don't warn about bad UTF-8 in raw lexing mode.
  7. extern int ‚x;
  8. #endif
  9. // Don't warn about bad UTF-8 in preprocessor directives.
  10. #define x82 ‚
  11. #pragma mark ‚