summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/duplicate-include/a.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/preprocessor/duplicate-include/a.slang')
-rw-r--r--tests/preprocessor/duplicate-include/a.slang13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/preprocessor/duplicate-include/a.slang b/tests/preprocessor/duplicate-include/a.slang
new file mode 100644
index 000000000..ce2c22b61
--- /dev/null
+++ b/tests/preprocessor/duplicate-include/a.slang
@@ -0,0 +1,13 @@
+//TEST:INTERPRET(filecheck=CHECK):
+
+// Test that it is OK to include the same file multiple times.
+
+#include "b.slang"
+
+#include "b.slang"
+
+void main()
+{
+ // CHECK: result: 23
+ printf("result: %d\n", foo());
+}