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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attrib32.C] - Blame information for rev 328

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/35315
2
 
3
typedef union { int i; } U __attribute__((transparent_union));
4
 
5
static void foo(U) {}
6
static void foo(int) {}
7
 
8
void bar()
9
{
10
  foo(0);
11
}
12
 
13
typedef union U1 { int i; } U2 __attribute__((transparent_union));
14
 
15
static void foo2(U1) {}
16
static void foo2(U2) {}
17
 
18
void bar2(U1 u1, U2 u2)
19
{
20
  foo2(u1);
21
  foo2(u2);
22
}
23
 
24
// PR c++/36410
25
struct A
26
{
27
  typedef union
28
  {
29
    int i;
30
  } B __attribute__((transparent_union));
31
};
32
 
33
void foo(A::B b)
34
{
35
  b.i;
36
}

powered by: WebSVN 2.1.0

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