Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaObjC/block-literal-with-attribute.m @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks -fobjc-arc // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks __auto_type block = ^ id __attribute__((ns_returns_retained)) (id filter) { return filter; // ok }; __auto_type block2 = ^ __attribute__((ns_returns_retained)) id (id filter) { return filter; // ok }; __auto_type block3 = ^ id (id filter) __attribute__((ns_returns_retained)) { return filter; // ok }; // expected-no-diagnostics