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-names.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* The name specified by an asm("...") suffix on a declaration is not
/* The name specified by an asm("...") suffix on a declaration is not
   to have an underscore prefixed, even if normal symbols are.
   to have an underscore prefixed, even if normal symbols are.
   Problem reported by Krister Walfridsson <cato@df.lth.se>.  */
   Problem reported by Krister Walfridsson <cato@df.lth.se>.  */
 
 
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-fleading-underscore" } */
/* { dg-options "-fleading-underscore" } */
/* { dg-final { scan-assembler-not "____frob14" } } */
/* { dg-final { scan-assembler-not "____frob14" } } */
 
 
extern void frobnicate (void) asm ("___frob14");  /* three underscores */
extern void frobnicate (void) asm ("___frob14");  /* three underscores */
 
 
int
int
main (void)
main (void)
{
{
  frobnicate ();
  frobnicate ();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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