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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [mangle2.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Test for overloaded operators in "C" linkage
3
 
4
extern "C" {
5
typedef struct b
6
{
7
  int a;
8
} c;
9
 
10
extern const c z;
11
 
12
inline bool operator!=(const c& x, const c& y)
13
{
14
  return x.a != y.a;
15
}
16
}
17
 
18
void foo();
19
 
20
void bar(c x)
21
{
22
  if (x != z)
23
    foo();
24
}

powered by: WebSVN 2.1.0

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