summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_options/main.cpp
blob: edefdf26a71b213d7f06e168483b7b2e4b0a9e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

#ifdef DO_GNU_TESTS

#  ifndef MY_PRIVATE_DEFINE
#    error Expected MY_PRIVATE_DEFINE
#  endif

#  ifndef MY_PUBLIC_DEFINE
#    error Expected MY_PUBLIC_DEFINE
#  endif

#  ifdef MY_INTERFACE_DEFINE
#    error Unexpected MY_INTERFACE_DEFINE
#  endif

#endif

#ifdef DO_CLANG_TESTS

#  ifndef MY_PRIVATE_DEFINE
#    error Expected MY_PRIVATE_DEFINE
#  endif

#  ifdef MY_PUBLIC_DEFINE
#    error Unexpected MY_PUBLIC_DEFINE
#  endif

#endif

int main()
{
  return 0;
}