[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Lexer / string-literal-errors.cpp
blob223dca4b94f6208597e83bb0c48542d07c2f8e90
1 // RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -strict-whitespace %s
3 void foo() {
4 (void)"\q \u123z \x \U \U123 \U12345 \u123 \xyzzy \777 \U"
5 // CHECK: {{^ \(void\)"\\q \\u123z \\x \\U \\U123 \\U12345 \\u123 \\xyzzy \\777 \\U"$}}
6 //
7 // (void)"\q \u123z \x \U \U123 \U12345 \u123 \xyzzy \777 \U"
8 // CHECK: {{^ \^~$}}
9 // CHECK: {{^ \^~~~~$}}
10 // CHECK: {{^ \^~$}}
11 // CHECK: {{^ \^~$}}
12 // CHECK: {{^ \^~~~~$}}
13 // CHECK: {{^ \^~~~~~~$}}
14 // CHECK: {{^ \^~~~~$}}
15 // CHECK: {{^ \^~$}}
16 // CHECK: {{^ \^~~~$}}
17 // CHECK: {{^ \^~$}}
19 "123 \x \z";
20 // CHECK: {{^ "123 \\x \\z";$}}
22 // "123 \x \z";
23 // CHECK: {{^ \^~$}}
24 // CHECK: {{^ \^~$}}
27 #define foo() lots and lots of tokens, need at least 8 to fill up the smallvector buffer #BadThingsHappenNow