2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -E -C %s | FileCheck -strict-whitespace %s
|
2006-07-29 14:41:10 +08:00
|
|
|
|
|
|
|
// foo
|
2009-10-27 10:36:32 +08:00
|
|
|
// CHECK: // foo
|
2006-07-29 14:41:10 +08:00
|
|
|
|
2009-10-27 10:36:32 +08:00
|
|
|
/* bar */
|
|
|
|
// CHECK: /* bar */
|
2006-07-29 14:41:10 +08:00
|
|
|
|
2012-06-15 08:47:13 +08:00
|
|
|
#if FOO
|
|
|
|
#endif
|
|
|
|
/* baz */
|
|
|
|
// CHECK: /* baz */
|
2012-06-16 07:33:51 +08:00
|
|
|
|
|
|
|
_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
|