Mercurial > hg > CbC > CbC_llvm
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/test/Preprocessor/whitespace-ms-extensions.c Wed Nov 09 17:45:10 2022 +0900 @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -E -P %s -o - | FileCheck %s +// RUN: %clang_cc1 -E -P -fms-extensions %s -o - | FileCheck %s --check-prefix=MSEXT + +// -fms-extensions changes __pragma into #pragma +// Ensure that there is a newline after the #pragma line. + +#define MACRO \ + text \ + __pragma(PRAGMA) \ + after + +before MACRO text + + +// CHECK: before text __pragma(PRAGMA) after text + +// MSEXT: before text +// MSEXT-NEXT: #pragma PRAGMA +// MSEXT-NEXT: after text