1 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s
4 typedef int (^blocktype)(int a, int b);
19 return (blocktype)a; // expected-error {{C-style cast from 'A *' to 'blocktype' (aka 'int (^)(int, int)') is not allowed}}
36 return (A*)a; // expected-error {{C-style cast from 'blocktype' (aka 'int (^)(int, int)') to 'A *' is not allowed}}