2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / init / brace2.C
blob488d916aa424bee90d54433b212c4aa59670da9d
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" }
7 int c = { { 2 } } ; // { dg-error "braces around scalar initializer" }