cmake-action/test/test.in

20 lines
362 B
Plaintext

#ifdef IS_C
#include <stdio.h>
#define PRINT(STR) printf(STR); printf("\n")
#else
#include <iostream>
#define PRINT(STR) std::cout << STR << std::endl
#endif
int main() {
#ifdef CHECK_SURPASS_WARNING
int unused;
#endif
#if defined(CHECK_USING_CLANG) && !defined(__clang__)
PRINT("compiler is not clang");
return 1;
#endif
PRINT("all ok");
return 0;
}