2013-01-25 04:50:46 +08:00
|
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2013-01-31 03:21:12 +08:00
|
|
|
|
// RUN: %clang_cc1 -E %s -o /dev/null
|
2013-01-25 04:50:46 +08:00
|
|
|
|
|
2013-01-31 03:29:14 +08:00
|
|
|
|
// Note: This file deliberately contains invalid UTF-8. Please do not fix!
|
2013-01-25 04:50:46 +08:00
|
|
|
|
|
|
|
|
|
extern int <EFBFBD>x; // expected-error{{source file is not valid UTF-8}}
|
2013-01-31 03:21:12 +08:00
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
// Don't warn about bad UTF-8 in raw lexing mode.
|
|
|
|
|
extern int <EFBFBD>x;
|
|
|
|
|
#endif
|
2013-02-01 03:48:48 +08:00
|
|
|
|
|
|
|
|
|
// Don't warn about bad UTF-8 in preprocessor directives.
|
|
|
|
|
#define x82 <20>
|
|
|
|
|
#pragma mark <20>
|