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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
1 // RUN: %clang_cc1 -E -P %s -o - | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2 // RUN: %clang_cc1 -E -P -fms-extensions %s -o - | FileCheck %s --check-prefix=MSEXT
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4 // -fms-extensions changes __pragma into #pragma
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5 // Ensure that there is a newline after the #pragma line.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7 #define MACRO \
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 text \
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 __pragma(PRAGMA) \
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10 after
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 before MACRO text
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 // CHECK: before text __pragma(PRAGMA) after text
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
16
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17 // MSEXT: before text
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
18 // MSEXT-NEXT: #pragma PRAGMA
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
19 // MSEXT-NEXT: after text