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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [darwin-20040812-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 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.