repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
brace2.C
blob
488d916aa424bee90d54433b212c4aa59670da9d
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" }
8