PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / using2.C
blob8b8ee7ba638cbbd1ce0e71812e9e8b53839303b1
1 // Test for P0195R2 variadic using.
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
5 struct A { void f(); };
6 struct B { void f(int); };
8 template <class... Bases> struct C: Bases...
10   using Bases::f...; // { dg-warning "pack expansion" "" { target c++14_down } }
13 int main()
15   C<A,B> c;
16   c.f();
17   c.f(42);