diff options
| author | Yong He <yonghe@outlook.com> | 2023-12-06 12:05:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-06 12:05:07 -0800 |
| commit | 11111e5733b189127dc2c4934d67693b9bc6e764 (patch) | |
| tree | 0ba84df3e856eb104abec2ecac47242bc70a7b7d /tests/front-end | |
| parent | fa6d8717d02912697c09f2d7de802723ac6d6e47 (diff) | |
Support visibility control and default to `internal`. (#3380)
* Support visibility control and default to `internal`.
* Fix wip.
* Fixes.
* Fix.
* Fix test.
* Add legacy language detection and compatibility for existing code.
* Add doc.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
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; } |
