OSDN Git Service

PR c++/29175
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / init / brace2.C
1 // { dg-do compile }
2 // [dcl.init] paragraph 13.
3 int x = { 2 };
4 const char * y = { "hello" };
5 int a = 2;
6 int b = { 2,3 }; // { dg-error "requires one element in initializer" }
7 int c = { { 2 } } ; // { dg-error "braces around scalar initializer" }
8 int d = {}; // { dg-error "requires one element in initializer" }