Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Preprocessor/_Pragma-newline.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 // RUN: %clang_cc1 -E -o - %s | FileCheck %s | |
2 // RUN: %clang_cc1 -E -P -o - %s | FileCheck %s | |
3 // RUN: %clang_cc1 -E -fminimize-whitespace -o - %s | FileCheck %s | |
4 // RUN: %clang_cc1 -E -fminimize-whitespace -P -o - %s | FileCheck %s | |
5 | |
6 // The PragmaAssumeNonNullHandler (and maybe others) passes an invalid | |
7 // SourceLocation when inside a _Pragma. Ensure we still emit semantic | |
8 // newlines. | |
9 // See report at https://reviews.llvm.org/D104601#3105044 | |
10 | |
11 _Pragma("clang assume_nonnull begin") test _Pragma("clang assume_nonnull end") | |
12 | |
13 // CHECK: {{^}}#pragma clang assume_nonnull begin{{$}} | |
14 // CHECK: test | |
15 // CHECK: {{^}}#pragma clang assume_nonnull end{{$}} |