blob: 1b08c90f23be710e504660ef0d4034f9924de0a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// enum-init-cast.slang
//TEST:SIMPLE:
// Regression test for a bug around declaration checking order
// for `enum` types, which manifests when an `enum` case
// has an initializer that requires an implicit cast.
enum class AAA
{
// These cases use a `uint` literal for initialization,
// but the `enum` type will use `int` for its tags.
BBB = 0u,
CCC = 1u,
};
|