summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/asm.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-02 02:33:08 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-02 02:33:08 +0000
commit3050d9bdb84e322e122219d54aedfe2d8ef7c51c (patch)
treeaa45334d5da6557cd0b92f02edff7ef0cea3af91 /clang/test/SemaCXX/asm.cpp
parent315d2cab27780f692537b2c9726fbecc31097bf0 (diff)
downloadbcm5719-llvm-3050d9bdb84e322e122219d54aedfe2d8ef7c51c.tar.gz
bcm5719-llvm-3050d9bdb84e322e122219d54aedfe2d8ef7c51c.zip
Properly handle temporaries that are created in a AsmStmt.
Previously the temporaries would get destroyed before the asm call. llvm-svn: 118001
Diffstat (limited to 'clang/test/SemaCXX/asm.cpp')
-rw-r--r--clang/test/SemaCXX/asm.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/clang/test/SemaCXX/asm.cpp b/clang/test/SemaCXX/asm.cpp
deleted file mode 100644
index cc2e6e75ca1..00000000000
--- a/clang/test/SemaCXX/asm.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
-
-struct A
-{
- ~A();
-};
-int foo(A);
-
-void bar()
-{
- A a;
- asm("" : : "r"(foo(a)) ); // rdar://8540491
-}
OpenPOWER on IntegriCloud