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/] [g++.dg/] [ext/] [typeof2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Test typeof with __asm redirection
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
extern "C" {
6
  extern int foo1;
7
  extern int foo1 __asm ("bar1");
8
  int foo1 = 1;
9
 
10
  extern int foo2 (int);
11
  extern int foo2 (int) __asm ("bar2");
12
  int foo2 (int x)
13
  {
14
    return x;
15
  }
16
 
17
  extern int foo3;
18
  extern __typeof (foo3) foo3 __asm ("bar3");
19
  int foo3 = 1;
20
 
21
  extern int foo4 (int);
22
  extern __typeof (foo4) foo4 __asm ("bar4");
23
  int foo4 (int x)
24
  {
25
    return x;
26
  }
27
}
28
 
29
// { 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.