Debian Codegraph @

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

raw
1 // PR c++/85847
2 // { dg-do compile { target c++11 } }
3
4 template <class>
5 int f(int b) { return b; }
6
7 template <class>
8 void g()
9 {
10 auto a = new int[f<int>(2), 2];
11 }