llvm-capstone/clang/test/Preprocessor/invalid-__has_warning2.c
Andy Gibbs 58905d251b Refactored duplicate string literal lexing code within Preprocessor, into a
common LexStringLiteral function.  In doing so, some consistency problems have
been ironed out (e.g. where the first token in the string literal was lexed
with macro expansion, but subsequent ones were not) and also an erroneous
diagnostic has been corrected.

LexStringLiteral is complemented by a FinishLexStringLiteral function which
can be used in the situation where the first token of the string literal has
already been lexed.

llvm-svn: 168266
2012-11-17 19:15:38 +00:00

6 lines
180 B
C

// RUN: %clang_cc1 -verify %s
// These must be the last lines in this test.
// expected-error@+1{{expected string literal}} expected-error@+1{{expected}}
int i = __has_warning();