From c94ca1692e101df87215232e87fa7edadc1a7b05 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 1 Jul 2025 23:36:02 +0800 Subject: Allow Link time constant array length sizing, warn on unsupported functionality (#7067) * Add link time array layout test * Add link time constant array size compilation test * Link time constant array size test * Allow getting link time array size Closes https://github.com/shader-slang/slang/issues/6753 * format * Switch to SIMPLE test and check output * Implement without binary api changes * diagnose on link time constant sized array * fix test --------- Co-authored-by: Yong He --- .../ambiguous-extern-export-entry.slang.expected | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/library/ambiguous-extern-export-entry.slang.expected (limited to 'tests/library') diff --git a/tests/library/ambiguous-extern-export-entry.slang.expected b/tests/library/ambiguous-extern-export-entry.slang.expected new file mode 100644 index 000000000..4ee9ac6c5 --- /dev/null +++ b/tests/library/ambiguous-extern-export-entry.slang.expected @@ -0,0 +1,17 @@ +result code = 0 +standard error = { +tests/library/ambiguous-extern-export-lib1.slang(4): warning 31000: Link-time constant sized arrays are a work in progress feature, some aspects of the reflection API may not work +public extern static const int[call_data_len] call_group_vector; + ^~~~~~~~~~~~~~~~~ +tests/library/ambiguous-extern-export-lib1.slang(5): warning 31000: Link-time constant sized arrays are a work in progress feature, some aspects of the reflection API may not work +public static int[call_data_len] call_id_1 = {}; + ^~~~~~~~~ +tests/library/ambiguous-extern-export-lib2.slang(5): warning 31000: Link-time constant sized arrays are a work in progress feature, some aspects of the reflection API may not work +public extern static const int[call_data_len] call_group_vector; + ^~~~~~~~~~~~~~~~~ +tests/library/ambiguous-extern-export-lib2.slang(7): warning 31000: Link-time constant sized arrays are a work in progress feature, some aspects of the reflection API may not work +public static int[call_data_len] call_id_2 = {}; + ^~~~~~~~~ +} +standard output = { +} -- cgit v1.2.3