URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wattributes" } */
|
/* { dg-options "-Wattributes" } */
|
|
|
/* Make sure the pragma enables the error. */
|
/* Make sure the pragma enables the error. */
|
|
|
#pragma GCC diagnostic error "-Waddress"
|
#pragma GCC diagnostic error "-Waddress"
|
|
|
void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */
|
void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */
|
|
|
int i;
|
int i;
|
|
|
void
|
void
|
foo ()
|
foo ()
|
{
|
{
|
if (&i) /* { dg-error ".* will always evaluate as 'true'" } */
|
if (&i) /* { dg-error ".* will always evaluate as 'true'" } */
|
grill ();
|
grill ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.