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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [desig4.C] - Rev 821

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

// PR c++/51458
// { dg-options "" }

char g[] = { [7] = "abcd" };         // { dg-error "designator" }
int a = { .foo = 6 };                // { dg-error "designator" }
int b = { [0] = 1 };                 // { dg-error "designator" }
_Complex float c = { .foo = 0,  1 }; // { dg-error "designator" }
_Complex float d = { [0] = 0,  1 };  // { dg-error "designator" }
_Complex float e = { 0, .foo = 1 };  // { dg-error "designator" }
_Complex float f = { 0, [0] = 1 };   // { dg-error "designator" }

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

powered by: WebSVN 2.1.0

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