2 // { dg-do compile { target c++11 } }
4 using nullptr_t = decltype(nullptr);
6 template<typename T, typename Sfinae = nullptr_t>
8 static float& int_if_addable();
12 struct B<T, decltype( (T() + T()), nullptr )> {
13 static int& int_if_addable();
22 Z operator+(Z, Z) = delete;
26 float& a = B<X>::int_if_addable();
27 int& b = B<Y>::int_if_addable();
28 float& c = B<Z>::int_if_addable();