URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
|
/* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
|
|
|
/* This code used to be a legitimate, if dubious, extension. However,
|
/* This code used to be a legitimate, if dubious, extension. However,
|
it's been broken since GCC 3.0 (caused ICE) and we have now removed
|
it's been broken since GCC 3.0 (caused ICE) and we have now removed
|
the extension. See PR c/7353. */
|
the extension. See PR c/7353. */
|
|
|
/* Case A: just the bare name = initializer. */
|
/* Case A: just the bare name = initializer. */
|
|
|
typedef A = 0; /* { dg-error "initialized" "A" } */
|
typedef A = 0; /* { dg-error "initialized" "A" } */
|
A a; /* { dg-bogus "" "A error cascade" } */
|
A a; /* { dg-bogus "" "A error cascade" } */
|
|
|
/* Case B: with a type also. */
|
/* Case B: with a type also. */
|
|
|
typedef int B = 0; /* { dg-error "initialized" "B" } */
|
typedef int B = 0; /* { dg-error "initialized" "B" } */
|
B b; /* { dg-bogus "" "B error cascade" } */
|
B b; /* { dg-bogus "" "B error cascade" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.