Crafter.Build/tests/MingwSysroot/fixture/probe.cpp

16 lines
666 B
C++
Raw Normal View History

// SPDX-License-Identifier: LGPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// Built for x86_64-w64-mingw32 against the prefix tests/MingwSysroot stages:
// a Linux system's /usr with a mingw-w64 cross toolchain in it.
#if __has_include(<sys/single_threaded.h>)
#error the include/ of the prefix is on the include path: a Windows build sees the headers of the Linux system
#endif
#if !__has_include(<_mingw.h>)
#error the mingw-w64 headers are not on the include path
#endif
#if !__has_include(<memory>)
#error the libstdc++ headers are not on the include path: clang found no gcc version under lib/gcc of the prefix
#endif
void Probe() {}