summaryrefslogtreecommitdiff
path: root/Tests/CMakeCommands/target_compile_options/consumer.cpp
blob: 7750950a1211c37bf070d10f4d8f49d6382ce1b1 (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

#ifdef DO_GNU_TESTS

#ifdef MY_PRIVATE_DEFINE
#error Unexpected MY_PRIVATE_DEFINE
#endif

#ifndef MY_PUBLIC_DEFINE
#error Expected MY_PUBLIC_DEFINE
#endif

#ifndef MY_INTERFACE_DEFINE
#error Expected MY_INTERFACE_DEFINE
#endif

#endif

#ifndef CONSUMER_LANG_CXX
#error Expected CONSUMER_LANG_CXX
#endif

#ifdef CONSUMER_LANG_C
#error Unexpected CONSUMER_LANG_C
#endif

#if !LANG_IS_CXX
#error Expected LANG_IS_CXX
#endif

#if LANG_IS_C
#error Unexpected LANG_IS_C
#endif

int main()
{
  return 0;
}