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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [asm-qual-1.c] - Diff between revs 298 and 338

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" } */
}
}
 
 

powered by: WebSVN 2.1.0

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