diff options
Diffstat (limited to 'tests/library/export-library.slang')
| -rw-r--r-- | tests/library/export-library.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/library/export-library.slang b/tests/library/export-library.slang new file mode 100644 index 000000000..f96b1e143 --- /dev/null +++ b/tests/library/export-library.slang @@ -0,0 +1,14 @@ +//TEST_IGNORE_FILE: + +// export-library.slang + +int doThing(int b) +{ + return b + b + 1; +} + +export int foo(int a) +{ + return a * a + 1 + doThing(a + 2); +} + |
