URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* Test that qualifiers other than volatile are ignored on asm. */
|
/* Test that qualifiers other than volatile are ignored on asm. */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=gnu99" } */
|
/* { dg-options "-std=gnu99" } */
|
|
|
void
|
void
|
f (void)
|
f (void)
|
{
|
{
|
asm volatile ("");
|
asm volatile ("");
|
asm const (""); /* { dg-warning "const qualifier ignored on asm" } */
|
asm const (""); /* { dg-warning "const qualifier ignored on asm" } */
|
asm restrict (""); /* { dg-warning "restrict qualifier ignored on asm" } */
|
asm restrict (""); /* { dg-warning "restrict qualifier ignored on asm" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.