Files
codeql/cpp/ql/test/library-tests/name_qualifiers/inconsistency.cpp
2018-08-02 17:53:23 +01:00

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; }
}