yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
29ffac963
master
1// enum-init-cast.slang 2//TEST:SIMPLE: 3 4// Regression test for a bug around declaration checking order 5// for `enum` types, which manifests when an `enum` case 6// has an initializer that requires an implicit cast. 7 8enum class AAA 9{ 10 // These cases use a `uint` literal for initialization, 11 // but the `enum` type will use `int` for its tags. 12 13 BBB = 0u, 14 CCC = 1u, 15};