[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Lexer / ms-compatibility.c
blobd159ad1b8d92bead14b5342cbd4915f2de839d84
1 // RUN: %clang_cc1 -fsyntax-only -E -fms-compatibility %s | FileCheck --check-prefix=CHECK-MS-COMPAT %s
2 // RUN: %clang_cc1 -fsyntax-only -E %s | FileCheck --check-prefix=CHECK-NO-MS-COMPAT %s
4 #define FN(x) L#x
5 #define F L "aaa"
6 void *v1 = FN(aaa);
7 void *v2 = F;
8 // CHECK-MS-COMPAT: void *v1 = L"aaa";
9 // CHECK-MS-COMPAT: void *v2 = L "aaa";
10 // CHECK-NO-MS-COMPAT: void *v1 = L "aaa";
11 // CHECK-NO-MS-COMPAT: void *v2 = L "aaa";