Files
CMake/Tests/SwiftMixPCH/CMain.c
Mikko Lehtonen 77c4d2f9a2 Xcode: Fix PCH support with Swift & C++
Previously, when a mixed language target ends up with `Swift` as the
`LINKER_LANGUAGE`, the PCH file was not set for the target at all.

Fixes: #21224
2024-01-30 12:50:40 -05:00

10 lines
139 B
C

#ifndef PCH_VALUE
# error "PCH_VALUE not defined"
#endif
int main(void)
{
const int value = PCH_VALUE;
return value == 42 ? 0 : 1;
}