summaryrefslogtreecommitdiff
path: root/tests/library/ambiguous-extern-export-lib2.slang
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2025-06-25 12:01:54 -0500
committerGitHub <noreply@github.com>2025-06-25 10:01:54 -0700
commitd48f050cb0209a4ba9819a094ffd1e7a7c2524ee (patch)
treea2ab97ad7c5df7d05f0a91f6c272bf25396754c0 /tests/library/ambiguous-extern-export-lib2.slang
parent7e8c85e85440c1fea42236a8ef8286e1ce1638ce (diff)
Fix ambiguous reference for 'extern' and 'export' (#7515)
Close #7509. When there are both `export` and `extern` decls in lookup result, we should remove all `extern` decls.
Diffstat (limited to 'tests/library/ambiguous-extern-export-lib2.slang')
-rw-r--r--tests/library/ambiguous-extern-export-lib2.slang15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/library/ambiguous-extern-export-lib2.slang b/tests/library/ambiguous-extern-export-lib2.slang
new file mode 100644
index 000000000..08d01fb04
--- /dev/null
+++ b/tests/library/ambiguous-extern-export-lib2.slang
@@ -0,0 +1,15 @@
+
+module "ambiguous-extern-export-lib2.slang";
+
+public extern static const int call_data_len;
+public extern static const int[call_data_len] call_group_vector;
+
+public static int[call_data_len] call_id_2 = {};
+
+public void initCallId2()
+{
+ for (int i = 0; i < call_data_len; i++)
+ {
+ call_id_2[i] = call_group_vector[i];
+ }
+}