aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/stmtexpr-copy-init.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-10-22 22:05:03 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-10-22 22:05:03 +0000
commit8a97005f97a2a93fc2cd942c040668c5d4df7537 (patch)
treeecc9046e5be317ce39de7135a98a833b9a93ba39 /test/CodeGenCXX/stmtexpr-copy-init.cpp
parentcee55018570c0c46262c6e4ef7beaa707c93fc86 (diff)
After discussion with Doug and John, I am reverting
the patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/stmtexpr-copy-init.cpp')
-rw-r--r--test/CodeGenCXX/stmtexpr-copy-init.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/CodeGenCXX/stmtexpr-copy-init.cpp b/test/CodeGenCXX/stmtexpr-copy-init.cpp
index 8a460e36a2..e69de29bb2 100644
--- a/test/CodeGenCXX/stmtexpr-copy-init.cpp
+++ b/test/CodeGenCXX/stmtexpr-copy-init.cpp
@@ -1,26 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s
-// rdar //8540501
-
-struct A
-{
- int i;
- A (int j) : i(j) {}
- A (const A &j) : i(j.i) {}
- A& operator= (const A &j) { i = j.i; return *this; }
-};
-
-A foo(int j)
-{
- return ({ j ? A(1) : A(0); });
-}
-
-int main()
-{
- return foo(1).i-1;
-}
-
-void foo2()
-{
- A b = ({ A a(1); a; });
-}
-