Debian Codegraph @

clang/test/SemaCXX/short-enums.cpp

raw
1 // RUN: %clang_cc1 -fshort-enums -fsyntax-only %s
2
3 // This shouldn't crash: PR9474
4
5 enum E { VALUE_1 };
6
7 template <typename T>
8 struct A {};
9
10 template <E Enum>
11 struct B : A<B<Enum> > {};
12
13 void bar(int x) {
14 switch (x) {
15 case sizeof(B<VALUE_1>): ;
16 }
17 }