Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-using2.C

raw
1 // PR c++/49520
2 // { dg-do compile { target c++11 } }
3
4 namespace x { void foo(); }
5
6 template<typename T>
7 struct traits
8 {
9 static constexpr bool f() { return true; }
10
11 static constexpr bool g()
12 {
13 using x::foo;
14 return f() && noexcept(foo());
15 }
16 };
17
18 template struct traits<int>;