summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/examples/scan_properties/always_scan.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CXXModules/examples/scan_properties/always_scan.cxx')
-rw-r--r--Tests/RunCMake/CXXModules/examples/scan_properties/always_scan.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/scan_properties/always_scan.cxx b/Tests/RunCMake/CXXModules/examples/scan_properties/always_scan.cxx
new file mode 100644
index 0000000..27087d7
--- /dev/null
+++ b/Tests/RunCMake/CXXModules/examples/scan_properties/always_scan.cxx
@@ -0,0 +1,10 @@
+#ifndef CMAKE_SCANNED_THIS_SOURCE
+# error "This file should have been scanned"
+#endif
+
+import M;
+
+int scanned_file()
+{
+ return from_module();
+}