summaryrefslogtreecommitdiff
path: root/tests/preprocessor/line.slang
diff options
context:
space:
mode:
authorTim Foley <tim.foley.is@gmail.com>2017-08-10 15:25:04 -0700
committerGitHub <noreply@github.com>2017-08-10 15:25:04 -0700
commitdb4079f7e3635a6a61b8725643b1d7ecf68b97d8 (patch)
tree224c16ad374c5ed533a497beeb75753e7ce2d771 /tests/preprocessor/line.slang
parent6e4830f4d74adef0a47c6503d84dc114240fafa3 (diff)
parenta5a436c4783fb75a0d089a6483219c06db91f593 (diff)
Merge pull request #156 from tfoleyNV/source-file-cleanup
Make source location lightweight
Diffstat (limited to 'tests/preprocessor/line.slang')
-rw-r--r--tests/preprocessor/line.slang19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/preprocessor/line.slang b/tests/preprocessor/line.slang
new file mode 100644
index 000000000..7babcae82
--- /dev/null
+++ b/tests/preprocessor/line.slang
@@ -0,0 +1,19 @@
+//TEST:SIMPLE:
+// #line support
+
+FooA a() { return 0; }
+
+#line 99 "b.slang"
+FooB b() { return 0; }
+
+#line default
+FooC c() { return 0; }
+
+#line 603 "d.slang"
+FooD d() { return 0; }
+
+#line 40
+FooE e() { return 0; }
+
+#line
+FooF f() { return 0; }