Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / single-token-macro.c
blobcb015277ba7967b242b1dabbdd7b4920409e7b4c
1 // Test this without pch.
2 // RUN: %clang_cc1 %s -include %s -verify -fsyntax-only
4 // Test with pch.
5 // RUN: %clang_cc1 %s -emit-pch -o %t
6 // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only
8 // expected-no-diagnostics
10 #ifndef HEADER
11 #define HEADER
13 #ifdef __stdcall
14 // __stdcall is defined as __attribute__((__stdcall__)) for targeting mingw32.
15 #undef __stdcall
16 #endif
18 #define __stdcall
19 #define STDCALL __stdcall
21 void STDCALL Foo(void);
23 #else
25 void STDCALL Foo(void)
29 #endif