URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test for tree-checking error when initializing a variable-length array
|
/* Test for tree-checking error when initializing a variable-length array
|
(not allowed): constructor_max_index needs to be an INTEGER_CST. */
|
(not allowed): constructor_max_index needs to be an INTEGER_CST. */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "" } */
|
/* { dg-options "" } */
|
|
|
int a;
|
int a;
|
|
|
void
|
void
|
foo (void)
|
foo (void)
|
{
|
{
|
int x[a] = { 1 }; /* { dg-error "init" "VLA init" } */
|
int x[a] = { 1 }; /* { dg-error "init" "VLA init" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.