30 lines · c
1// Test this without pch.2// RUN: %clang_cc1 %s -include %s -verify -fsyntax-only3 4// Test with pch.5// RUN: %clang_cc1 %s -emit-pch -o %t6// RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only7 8// expected-no-diagnostics9 10#ifndef HEADER11#define HEADER12 13#ifdef __stdcall14// __stdcall is defined as __attribute__((__stdcall__)) for targeting mingw32.15#undef __stdcall16#endif17 18#define __stdcall19#define STDCALL __stdcall20 21void STDCALL Foo(void);22 23#else24 25void STDCALL Foo(void)26{27}28 29#endif30