OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [brace2.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { 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" }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.