summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/block-destruct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/block-destruct.cpp')
-rw-r--r--clang/test/CodeGenCXX/block-destruct.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/block-destruct.cpp b/clang/test/CodeGenCXX/block-destruct.cpp
new file mode 100644
index 0000000..f809ca2
--- /dev/null
+++ b/clang/test/CodeGenCXX/block-destruct.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
+
+struct A { ~A(); };
+
+void f() {
+ __block A a;
+}
+
+// CHECK: call void @_ZN1AD1Ev