summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/examples/scan_properties/join.cxx
blob: 8184a403fbb45ee59dc30897253b0cab90d1daca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#if SCAN_AT_TARGET_LEVEL
#  ifndef CMAKE_SCANNED_THIS_SOURCE
#    error "This file should have been scanned"
#  endif
#else
#  ifdef CMAKE_SCANNED_THIS_SOURCE
#    error "This file should not have been scanned"
#  endif
#endif

int scanned_file();
int never_scan();

int join()
{
  return scanned_file() + never_scan();
}