Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/auto49.C

raw
1 // PR c++/84350
2 // { dg-do compile { target c++11 } }
3
4 template<typename... T> void foo(T... t)
5 {
6 new auto(t...); // { dg-error "invalid use" }
7 }
8
9 void bar()
10 {
11 foo();
12 }