summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/comment_save.c
blob: 1100ea29bba9c32525a1727bb7b34f0a3935539a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %clang_cc1 -E -C %s | FileCheck -strict-whitespace %s

// foo
// CHECK: // foo

/* bar */
// CHECK: /* bar */

#if FOO
#endif
/* baz */
// CHECK: /* baz */

_Pragma("unknown") // after unknown pragma
// CHECK: #pragma unknown
// CHECK-NEXT: #
// CHECK-NEXT: // after unknown pragma

_Pragma("comment(\"abc\")") // after known pragma
// CHECK: #pragma comment("abc")
// CHECK-NEXT: #
// CHECK-NEXT: // after known pragma
OpenPOWER on IntegriCloud