From a01c09c3934d3f859bf4bea6b4e583f25291b643 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 9 Apr 2020 15:43:09 -0400 Subject: Literal folding on other operators (#1314) * Fold prefix operators if they prefix an int literal. * Make test case a bit more convoluted. * Remove ++ and -- as not appropriate for folding of literals. * Set output buffer name. --- tests/compute/static-const-array.slang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/compute/static-const-array.slang') diff --git a/tests/compute/static-const-array.slang b/tests/compute/static-const-array.slang index 4bd197a05..1f111e364 100644 --- a/tests/compute/static-const-array.slang +++ b/tests/compute/static-const-array.slang @@ -1,10 +1,10 @@ // static-const-array.slang //TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -//TEST_DISABLED(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute +//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute +//TEST(compute):COMPARE_COMPUTE_EX:-cpu -slang -compute - -//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out +//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name outputBuffer RWStructuredBuffer outputBuffer; static const int kArray[] = { 16, 1, 32, 2 }; -- cgit v1.2.3