| Argyrios Kyrtzidis | 373cb78 | 2011-12-17 04:13:31 +0000 | [diff] [blame] | 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 | |
| Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 10 | // expected-no-diagnostics |
| 11 | |
| Argyrios Kyrtzidis | 373cb78 | 2011-12-17 04:13:31 +0000 | [diff] [blame] | 12 | #ifndef HEADER |
| 13 | #define HEADER |
| 14 | |
| Argyrios Kyrtzidis | 373cb78 | 2011-12-17 04:13:31 +0000 | [diff] [blame] | 15 | #define __stdcall |
| 16 | #define STDCALL __stdcall |
| 17 | |
| 18 | void STDCALL Foo(void); |
| 19 | |
| 20 | #else |
| 21 | |
| 22 | void STDCALL Foo(void) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | #endif |