diff options
Diffstat (limited to 'tests/front-end')
| -rw-r--r-- | tests/front-end/import-exported-b.slang | 2 | ||||
| -rw-r--r-- | tests/front-end/import-subdir-search-path.slang | 2 | ||||
| -rw-r--r-- | tests/front-end/raw-string-literal.slang | 4 | ||||
| -rw-r--r-- | tests/front-end/subdir/import-subdir-a.slang | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/front-end/import-exported-b.slang b/tests/front-end/import-exported-b.slang index 144f62060..e7bc49510 100644 --- a/tests/front-end/import-exported-b.slang +++ b/tests/front-end/import-exported-b.slang @@ -2,4 +2,4 @@ // This file defines the code that will be (transitively) imported into `import-exported.slang` -float foo(float x) { return x; }
\ No newline at end of file +public float foo(float x) { return x; } diff --git a/tests/front-end/import-subdir-search-path.slang b/tests/front-end/import-subdir-search-path.slang index 9b7c7a520..b35802f14 100644 --- a/tests/front-end/import-subdir-search-path.slang +++ b/tests/front-end/import-subdir-search-path.slang @@ -7,4 +7,4 @@ __import import_subdir_a; // Should realize it's the same thing __import subdir.import_subdir_a; -float bar(float x) { return foo(x); }
\ No newline at end of file +float bar(float x) { return foo(x); } diff --git a/tests/front-end/raw-string-literal.slang b/tests/front-end/raw-string-literal.slang index 321f183c7..7297c27e1 100644 --- a/tests/front-end/raw-string-literal.slang +++ b/tests/front-end/raw-string-literal.slang @@ -17,7 +17,7 @@ void printLines(NativeString text) } } -public __extern_cpp int main() +export __extern_cpp int main() { printLines( R"(This is line 1. @@ -25,4 +25,4 @@ public __extern_cpp int main() "Hello World" )"); return 0; -}
\ 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 index 3962d4662..e973d5cbf 100644 --- a/tests/front-end/subdir/import-subdir-a.slang +++ b/tests/front-end/subdir/import-subdir-a.slang @@ -2,4 +2,4 @@ // This is the imported code. -float foo(float x) { return x; }
\ No newline at end of file +public float foo(float x) { return x; } |
