yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
57c3f9382
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): 2enum MyError 3{ 4 Fail 5} 6 7void f() throws MyError 8{ 9 defer { 10 // Throw isn't allowed to escape defer for the same reason as 'return', 11 // it'd prevent other defer statements from running. This is legal if 12 // you catch it, though. 13 throw MyError.Fail; 14 } 15} 16 17// CHECK: error 30113