Files
codeql/cpp/ql/test/library-tests/name_qualifiers/inconsistency.cpp
Jeroen Ketema 98f147556a C++: Add namequalifier test with inconsistency
While where the remove the file restriction in QL.
2026-06-10 14:27:56 +02:00

9 lines
193 B
C++

// This file is present to test whether name-qualifying an enum constant leads to a database inconsistency.
struct S { enum E { A }; };
static void f() {
switch(0) { case S::A: break; }
}