summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist16.C
blob: 86a003960517375a6ad8f92d95c5abae3b1e2350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "-std=c++0x" }
// { dg-do run }

extern "C" void abort();

void f(int i) { if (i != 42) abort(); }

int main()
{
  f({42});
  return {0};
}