mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
24 lines
328 B
C++
24 lines
328 B
C++
|
|
// A regression test for a bug extracting the enum constants in a template
|
|
// class.
|
|
|
|
template <class>
|
|
class C {
|
|
enum { foo, bar, baz } delim;
|
|
void f();
|
|
};
|
|
|
|
template <class T>
|
|
void C<T>::f() {
|
|
switch (delim) {
|
|
case bar:
|
|
break;
|
|
case baz:
|
|
break;
|
|
case foo:
|
|
break;
|
|
}
|
|
}
|
|
|
|
template class C<int>;
|