]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 13 Sep 2004 08:39:17 +0000 (08:39 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 13 Sep 2004 08:39:17 +0000 (08:39 +0000)
'gcc-3_3-branch'.

From-SVN: r87428

gcc/testsuite/g++.dg/opt/nrv7.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/opt/nrv7.C b/gcc/testsuite/g++.dg/opt/nrv7.C
new file mode 100644 (file)
index 0000000..c5034ec
--- /dev/null
@@ -0,0 +1,13 @@
+// PR c++/15461
+
+struct A {  
+    int i;  
+};  
+  
+inline A foo () {  
+    int j = 1; 
+    A a = { j }; 
+    return a;  
+} 
+A tv = foo();