From 11111e5733b189127dc2c4934d67693b9bc6e764 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 6 Dec 2023 12:05:07 -0800 Subject: 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 --- tests/library/library.slang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/library') diff --git a/tests/library/library.slang b/tests/library/library.slang index fafb1018c..3deaeab99 100644 --- a/tests/library/library.slang +++ b/tests/library/library.slang @@ -2,12 +2,12 @@ // library.slang -int doThing(int b) +export int doThing(int b) { return b + b + 1; } -public int foo(int a) +public export int foo(int a) { return a * a + 1 + doThing(a + 2); } -- cgit v1.2.3