Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-value4.C

raw
1 // PR c++/88857
2 // { dg-do compile { target c++11 } }
3
4 class S { int a; };
5 void foo (const S &, int);
6
7 template <int N>
8 void
9 bar ()
10 {
11 foo ({}); // { dg-error "too few arguments to function" }
12 }