1 // PR c++/37208: SFINAE and deleted functions.
3 // { dg-do compile { target c++11 } }
4 template<int> struct A { };
7 int& int_if_addable(A<sizeof((*(T*)0) + (*(T*)0))>*);
10 float& int_if_addable(...);
18 Z operator+(Z, Z) = delete;
22 float& x = int_if_addable<X>(0);
23 int& y = int_if_addable<Y>(0);
24 float& z = int_if_addable<Z>(0);