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/] [darwin-20040812-1.c] - Diff between revs 298 and 338

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

Rev 298 Rev 338
/* Test dead code strip support.  */
/* Test dead code strip support.  */
/* Contributed by Devang Patel  <dpatel@apple.com>  */
/* Contributed by Devang Patel  <dpatel@apple.com>  */
 
 
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
 
 
const char my_version_string[] __attribute__((__used__))
const char my_version_string[] __attribute__((__used__))
  = "Do not remove this string\n";
  = "Do not remove this string\n";
 
 
 static int
 static int
 __attribute__((__used__))
 __attribute__((__used__))
      static_debug_routine()
      static_debug_routine()
{
{
   int i;
   int i;
   i = 42;
   i = 42;
}
}
 
 
int
int
main ()
main ()
{
{
   return 0;
   return 0;
}
}
 
 
/* { dg-final { scan-assembler ".no_dead_strip _my_version_string" } } */
/* { dg-final { scan-assembler ".no_dead_strip _my_version_string" } } */
/* { dg-final { scan-assembler ".no_dead_strip _static_debug_routine" } } */
/* { dg-final { scan-assembler ".no_dead_strip _static_debug_routine" } } */
 
 

powered by: WebSVN 2.1.0

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