2 // { dg-do compile { target c++11 } }
3 // { dg-final { scan-assembler "_ZN1BIZN3fooIivE3barILb1EEEvvE1CEC1ERKS4_" } }
6 struct test { static const int value = 0; };
8 struct enable_if { typedef void type; };
10 struct A { virtual void f() {} };
11 template<typename U> struct B : A { B(); B(const B&); };
12 template<typename U> B<U>::B() { }
13 template<typename U> B<U>::B(const B&) { }
15 template<class T> void g(T) { }
17 template<typename T, typename = void> struct foo;
19 struct foo<T,typename enable_if<test<T>::value>::type>
21 template <bool P> void bar() {