tree-sitter-objc/examples/SemaObjC/attr-cleanup.m

12 lines
163 B
Objective-C

// RUN: %clang_cc1 %s -verify -fsyntax-only
// expected-no-diagnostics
@class NSString;
void c1(id *a);
void t1()
{
NSString *s __attribute((cleanup(c1)));
}