Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-template9.C

raw
1 // PR c++/60999
2 // { dg-do compile { target c++11 } }
3
4 template <typename A>
5 struct foo
6 {
7 };
8
9 template<>
10 struct foo<int>
11 {
12 static constexpr int code = 42;
13 unsigned int bar = static_cast<unsigned int>(code);
14 };
15
16 foo<int> a;