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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [init/] [brace2.C] - Blame information for rev 315

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 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 "initializer" }

powered by: WebSVN 2.1.0

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