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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [typeof2.C] - Blame information for rev 154

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 "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.