annotate clang/test/Preprocessor/_Pragma-newline.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
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 -o - %s | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2 // RUN: %clang_cc1 -E -P -o - %s | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3 // RUN: %clang_cc1 -E -fminimize-whitespace -o - %s | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4 // RUN: %clang_cc1 -E -fminimize-whitespace -P -o - %s | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 // The PragmaAssumeNonNullHandler (and maybe others) passes an invalid
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7 // SourceLocation when inside a _Pragma. Ensure we still emit semantic
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 // newlines.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 // See report at https://reviews.llvm.org/D104601#3105044
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 _Pragma("clang assume_nonnull begin") test _Pragma("clang assume_nonnull end")
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13 // CHECK: {{^}}#pragma clang assume_nonnull begin{{$}}
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14 // CHECK: test
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 // CHECK: {{^}}#pragma clang assume_nonnull end{{$}}