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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle31.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/39095
2
// { dg-do compile }
3
 
4
struct B
5
{
6
  int b;
7
};
8
 
9
struct A
10
{
11
  B *operator->();
12
  A ();
13
  B b;
14
};
15
 
16
A::A ()
17
{
18
}
19
 
20
B *
21
A::operator->()
22
{
23
  return &b;
24
}
25
 
26
A a;
27
 
28
int
29
foo ()
30
{
31
  return a->b;
32
}
33
 
34
// { dg-final { scan-assembler "_ZN1AptEv" } }
35
// { dg-final { scan-assembler-not "_ZN1AdtEv" } }

powered by: WebSVN 2.1.0

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