blob: 59a65e50582ad8598c12fcd44e44fd30661b7171 [file] [log] [blame]
// PR c++/49520
// { dg-do compile { target c++11 } }
namespace x { void foo(); }
template<typename T>
struct traits
{
static constexpr bool f() { return true; }
static constexpr bool g()
{
using x::foo;
return f() && noexcept(foo());
}
};
template struct traits<int>;