comparison clang/test/PCH/single-token-macro.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 // rdar://10588825
2
3 // Test this without pch.
4 // RUN: %clang_cc1 %s -include %s -verify -fsyntax-only
5
6 // Test with pch.
7 // RUN: %clang_cc1 %s -emit-pch -o %t
8 // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only
9
10 // expected-no-diagnostics
11
12 #ifndef HEADER
13 #define HEADER
14
15 #ifdef __stdcall
16 // __stdcall is defined as __attribute__((__stdcall__)) for targeting mingw32.
17 #undef __stdcall
18 #endif
19
20 #define __stdcall
21 #define STDCALL __stdcall
22
23 void STDCALL Foo(void);
24
25 #else
26
27 void STDCALL Foo(void)
28 {
29 }
30
31 #endif