annotate clang/test/Preprocessor/hash_line.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // The 1 and # should not go on the same line.
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
anatofuz
parents:
diff changeset
3 // CHECK: {{^1$}}
anatofuz
parents:
diff changeset
4 // CHECK-NEXT: {{^ #$}}
anatofuz
parents:
diff changeset
5 // CHECK-NEXT: {{^2$}}
anatofuz
parents:
diff changeset
6 // CHECK-NEXT: {{^ #$}}
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
7
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
8 // RUN: %clang_cc1 -E -P -fminimize-whitespace %s | FileCheck --strict-whitespace %s --check-prefix=MINWS
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
9 // MINWS: {{^}}1#2#{{$}}
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
10
150
anatofuz
parents:
diff changeset
11 #define EMPTY
anatofuz
parents:
diff changeset
12 #define IDENTITY(X) X
anatofuz
parents:
diff changeset
13 1
anatofuz
parents:
diff changeset
14 EMPTY #
anatofuz
parents:
diff changeset
15 2
anatofuz
parents:
diff changeset
16 IDENTITY() #