gcc/libstdc++-v3/testsuite/20_util/is_constructible/68430.cc
Ville Voutilainen 5dd44f4ea5 re PR libstdc++/68430 (std::is_constructible<T>::value == true for unconstructible type T)
PR libstdc++/68430

* testsuite/20_util/is_constructible/68430.cc: New.

From-SVN: r255785
2017-12-18 20:46:30 +02:00

7 lines
177 B
C++

// { dg-do compile { target c++11 } }
#include <type_traits>
template<class T> struct Foo { Foo(T = nullptr) {} };
static_assert(!std::is_constructible<Foo<int>>::value, "");