blob: 29edb753e41a46ebf6bff061f9b77c5d03e6a503 [file] [log] [blame]
Argyrios Kyrtzidis373cb782011-12-17 04:13:31 +00001// 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#ifndef HEADER
11#define HEADER
12
Argyrios Kyrtzidis373cb782011-12-17 04:13:31 +000013#define __stdcall
14#define STDCALL __stdcall
15
16void STDCALL Foo(void);
17
18#else
19
20void STDCALL Foo(void)
21{
22}
23
24#endif