[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / comment_save.c
blob84eaed0a2272f6440c33bb63f73df56f490238e0
1 // RUN: %clang_cc1 -E -C %s | FileCheck -strict-whitespace %s
2 // RUN: %clang_cc1 -E -C -fminimize-whitespace %s | FileCheck -strict-whitespace %s
4 // foo
5 // CHECK: // foo
7 /* bar */
8 // CHECK: /* bar */
10 #if FOO
11 #endif
12 /* baz */
13 // CHECK: /* baz */
15 _Pragma("unknown") // after unknown pragma
16 // CHECK: #pragma unknown
17 // CHECK-NEXT: #
18 // CHECK-NEXT: // after unknown pragma
20 _Pragma("comment(\"abc\")") // after known pragma
21 // CHECK: #pragma comment("abc")
22 // CHECK-NEXT: #
23 // CHECK-NEXT: // after known pragma