summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/nrv7.C
blob: c5034ecc0f21fa47ab05a8ed81c8a9867a63054d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/15461

struct A {  
    int i;  
};  
  
inline A foo () {  
    int j = 1; 
    A a = { j }; 
    return a;  
} 
 
A tv = foo();