OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [typeof-1.c] - Blame information for rev 645

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test typeof with __asm redirection. */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
extern int foo1;
6
extern int foo1 __asm ("bar1");
7
int foo1 = 1;
8
 
9
extern int foo2 (int);
10
extern int foo2 (int) __asm ("bar2");
11
int foo2 (int x)
12
{
13
  return x;
14
}
15
 
16
extern int foo3;
17
extern __typeof (foo3) foo3 __asm ("bar3");
18
int foo3 = 1;
19
 
20
extern int foo4 (int);
21
extern __typeof (foo4) foo4 __asm ("bar4");
22
int foo4 (int x)
23
{
24
  return x;
25
}
26
 
27
// { dg-final { scan-assembler-not "foo" } }

powered by: WebSVN 2.1.0

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