Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Preprocessor/whitespace-ms-extensions.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | |
children |
rev | line source |
---|---|
236 | 1 // RUN: %clang_cc1 -E -P %s -o - | FileCheck %s |
2 // RUN: %clang_cc1 -E -P -fms-extensions %s -o - | FileCheck %s --check-prefix=MSEXT | |
3 | |
4 // -fms-extensions changes __pragma into #pragma | |
5 // Ensure that there is a newline after the #pragma line. | |
6 | |
7 #define MACRO \ | |
8 text \ | |
9 __pragma(PRAGMA) \ | |
10 after | |
11 | |
12 before MACRO text | |
13 | |
14 | |
15 // CHECK: before text __pragma(PRAGMA) after text | |
16 | |
17 // MSEXT: before text | |
18 // MSEXT-NEXT: #pragma PRAGMA | |
19 // MSEXT-NEXT: after text |