blob: af346e8c968686920248ca22ef735e3d229accd4 [file] [log] [blame]
Douglas Gregor80c60f72010-09-09 22:45:38 +00001// RUN: %clang_cc1 -fms-extensions -E %s | FileCheck %s
2
3// Test that we properly expand the C99 _Pragma and Microsoft __pragma
4// into #pragma directives, with newlines where needed. <rdar://problem/8412013>
5
6// CHECK: extern
7// CHECK: #line
8// CHECK: #pragma warning(push)
9// CHECK: #line
10// CHECK: ; void f0();
11// CHECK: #line
12// CHECK: #pragma warning(pop)
13// CHECK: #line
14// CHECK: ; }
15extern "C" { _Pragma("warning(push)"); void f0(); __pragma(warning(pop)); }