Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wuninitialized-27.C

raw
1 // PR c++/19808
2 // { dg-do compile }
3 // { dg-options "-Wall" }
4
5 enum E { red };
6
7 struct C {
8 C(int *, unsigned);
9 };
10
11 template <unsigned U> struct D : C {
12 D(int, int, E) : C(e, U) {}
13 int e[2];
14 };
15
16 void
17 g ()
18 {
19 D<1>(0, 0, red);
20 }