summaryrefslogtreecommitdiffstats
path: root/tests/bugs/overloaded-enum.slang
blob: 3b9ac8e10d909165a6954cd72ca01c54d30bcf89 (plain)
1
2
3
4
5
6
7
8
9
10
//TEST:SIMPLE(filecheck=CHECK):

enum E
{
    A,
    A
    // CHECK: overloaded-enum.slang([[#@LINE-1]]): error 30200: declaration of 'A' conflicts with existing declaration
}

E e = E::A;