summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_options/main.cpp
blob: 7608400c4c77aee9a366f690eb440f9a559bc368 (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
34
35
36
37
38
39
40
41

#ifdef DO_GNU_TESTS

#  ifndef MY_PRIVATE_DEFINE
#    error Expected MY_PRIVATE_DEFINE
#  endif

#  ifndef MY_PUBLIC_DEFINE
#    error Expected MY_PUBLIC_DEFINE
#  endif

#  ifndef MY_MUTLI_COMP_PUBLIC_DEFINE
#    error Expected MY_MUTLI_COMP_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

#  ifndef MY_MUTLI_COMP_PUBLIC_DEFINE
#    error Expected MY_MUTLI_COMP_PUBLIC_DEFINE
#  endif

#endif

int main()
{
  return 0;
}