commit | 22cfaf512e4f66105fb1f8dd39e0a77787fbdf9b | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu Feb 16 22:45:48 2012 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu Feb 16 22:45:48 2012 +0000 |
tree | 836dc88bd53e8fb7e71a5aa36b414520341a51c2 | |
parent | 3336353578a02eb7dc35926c2440577993196e36 [diff] [blame] |
Elide copy construction in new expressions. PR11757. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150738 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/debug-info-limit.cpp b/test/CodeGenCXX/debug-info-limit.cpp index 75f9271..bca887b 100644 --- a/test/CodeGenCXX/debug-info-limit.cpp +++ b/test/CodeGenCXX/debug-info-limit.cpp
@@ -7,8 +7,8 @@ int z; }; -A *foo () { - A *a = new A(); +A *foo (A* x) { + A *a = new A(*x); return a; }