summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/attr-cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/attr-cleanup.c')
-rw-r--r--test/CodeGen/attr-cleanup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/attr-cleanup.c b/test/CodeGen/attr-cleanup.c
new file mode 100644
index 0000000..03dde33
--- /dev/null
+++ b/test/CodeGen/attr-cleanup.c
@@ -0,0 +1,8 @@
+// RUN: clang-cc -emit-llvm %s -o %t
+
+// <rdar://problem/6827047>
+void f(void* arg);
+void g() {
+ __attribute__((cleanup(f))) void *g;
+}
+
OpenPOWER on IntegriCloud