summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/examples/scan_properties/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CXXModules/examples/scan_properties/main.cxx')
-rw-r--r--Tests/RunCMake/CXXModules/examples/scan_properties/main.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/scan_properties/main.cxx b/Tests/RunCMake/CXXModules/examples/scan_properties/main.cxx
new file mode 100644
index 0000000..81e93f4
--- /dev/null
+++ b/Tests/RunCMake/CXXModules/examples/scan_properties/main.cxx
@@ -0,0 +1,16 @@
+#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 join();
+
+int main(int argc, char** argv)
+{
+ return join();
+}