yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

sriramm-nvFix assertions due to malformed switch statements (#3858)f6c49fdb2

master
364 B14 linesraw
1//TEST:SIMPLE(filecheck=CHECK):
2
3// Test to evaluate the behavior of unreachable code blocks within a switch statement. A switch statement with multiple default cases is not allowed and should throw an error
4
5void test()
6{
7    switch (0)
8    {
9        default: break;
10        // CHECK: ([[# @LINE+1]]): error 30600: {{.*}}
11        default: break;
12    }
13	return;
14}