summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr17153.C
blob: 658225e6ecca950274ca5485c2da4d96583da919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* The alias analyzer was marking RETVAL non-addressable, but RETVAL
   is a special variable that's available across different functions.  */
void foo(const char*);

struct A {};

struct B : A
{
    B(){}
    B bar()
    {
        foo(__PRETTY_FUNCTION__);
        return B();
    }
};

B b=B().bar();