mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
9 lines
236 B
C++
9 lines
236 B
C++
// This file is present to test whether name-qualifying an enum constant leads to a database inconsistency.
|
|
// As such, there is no QL part of the test.
|
|
|
|
struct S { enum E { A }; };
|
|
|
|
static int f() {
|
|
switch(0) { case S::A: break; }
|
|
}
|