Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr17153.C
blob658225e6ecca950274ca5485c2da4d96583da919
1 /* The alias analyzer was marking RETVAL non-addressable, but RETVAL
2    is a special variable that's available across different functions.  */
3 void foo(const char*);
5 struct A {};
7 struct B : A
9     B(){}
10     B bar()
11     {
12         foo(__PRETTY_FUNCTION__);
13         return B();
14     }
17 B b=B().bar();