summaryrefslogtreecommitdiffstats
path: root/clang/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
commitc123623d28d6cbc6e9bc0bedaa19a7c397db38ea (patch)
treed196295312796f03d26f79f19895d3224a670e26 /clang/test/CodeGenCXX/stmtexpr-copy-init.cpp
parent3565b0a2e23f59788f959faed806c4bdf1892e64 (diff)
downloadbcm5719-llvm-c123623d28d6cbc6e9bc0bedaa19a7c397db38ea.tar.gz
bcm5719-llvm-c123623d28d6cbc6e9bc0bedaa19a7c397db38ea.zip
After discussion with Doug and John, I am reverting
the patch. llvm-svn: 117159
Diffstat (limited to 'clang/test/CodeGenCXX/stmtexpr-copy-init.cpp')
-rw-r--r--clang/test/CodeGenCXX/stmtexpr-copy-init.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/clang/test/CodeGenCXX/stmtexpr-copy-init.cpp b/clang/test/CodeGenCXX/stmtexpr-copy-init.cpp
index 8a460e36a27..e69de29bb2d 100644
--- a/clang/test/CodeGenCXX/stmtexpr-copy-init.cpp
+++ b/clang/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; });
-}
-
OpenPOWER on IntegriCloud