summaryrefslogtreecommitdiff
path: root/test/SemaObjC/attr-cleanup.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/attr-cleanup.m')
-rw-r--r--test/SemaObjC/attr-cleanup.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaObjC/attr-cleanup.m b/test/SemaObjC/attr-cleanup.m
new file mode 100644
index 000000000000..f4d057b2b830
--- /dev/null
+++ b/test/SemaObjC/attr-cleanup.m
@@ -0,0 +1,10 @@
+// RUN: clang-cc %s -verify -fsyntax-only
+
+@class NSString;
+
+void c1(id *a);
+
+void t1()
+{
+ NSString *s __attribute((cleanup(c1)));
+}