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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [darwin-20040812-1.c] - Blame information for rev 307

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test dead code strip support.  */
2
/* Contributed by Devang Patel  <dpatel@apple.com>  */
3
 
4
/* { dg-do compile { target *-*-darwin* } } */
5
 
6
const char my_version_string[] __attribute__((__used__))
7
  = "Do not remove this string\n";
8
 
9
 static int
10
 __attribute__((__used__))
11
      static_debug_routine()
12
{
13
   int i;
14
   i = 42;
15
}
16
 
17
int
18
main ()
19
{
20
   return 0;
21
}
22
 
23
/* { dg-final { scan-assembler ".no_dead_strip _my_version_string" } } */
24
/* { 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.