llvm-for-llvmta/tools/clang/test/Preprocessor/comment_save.c

23 lines
428 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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