view clang/test/Preprocessor/hash_line.c @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
children
line wrap: on
line source

// The 1 and # should not go on the same line.
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
// CHECK: {{^1$}}
// CHECK-NEXT: {{^      #$}}
// CHECK-NEXT: {{^2$}}
// CHECK-NEXT: {{^           #$}}

// RUN: %clang_cc1 -E -P -fminimize-whitespace %s | FileCheck --strict-whitespace %s --check-prefix=MINWS
// MINWS:  {{^}}1#2#{{$}}

#define EMPTY
#define IDENTITY(X) X
1
EMPTY #
2
IDENTITY() #