summaryrefslogtreecommitdiff
path: root/Tests/CMakeCommands/target_compile_definitions/consumer.c
blob: 7931a6f0e5adad226aafc1a130e7cc2f8d92a6ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#ifdef TEST_LANG_DEFINES
#ifdef CONSUMER_LANG_CXX
#error Unexpected CONSUMER_LANG_CXX
#endif

#ifndef CONSUMER_LANG_C
#error Expected CONSUMER_LANG_C
#endif

#if !LANG_IS_C
#error Expected LANG_IS_C
#endif

#if LANG_IS_CXX
#error Unexpected LANG_IS_CXX
#endif
#endif

void consumer_c()
{
}