summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/front-end/import-subdir.slang7
-rw-r--r--tests/front-end/subdir/import-subdir-a.slang5
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/front-end/import-subdir.slang b/tests/front-end/import-subdir.slang
new file mode 100644
index 000000000..0d3931a82
--- /dev/null
+++ b/tests/front-end/import-subdir.slang
@@ -0,0 +1,7 @@
+//TEST:SIMPLE:
+
+// Confirming that we can use "dot notation" to import via a subdirectory
+
+__import subdir.import_subdir_a;
+
+float bar(float x) { return foo(x); } \ No newline at end of file
diff --git a/tests/front-end/subdir/import-subdir-a.slang b/tests/front-end/subdir/import-subdir-a.slang
new file mode 100644
index 000000000..3962d4662
--- /dev/null
+++ b/tests/front-end/subdir/import-subdir-a.slang
@@ -0,0 +1,5 @@
+//TEST_IGNORE_FILE:
+
+// This is the imported code.
+
+float foo(float x) { return x; } \ No newline at end of file