blob: 19838d4f439711b8a7509e39dccf99d9803518e7 [file] [log] [blame]
/* APPLE LOCAL file radar 4502186 */
/* Check that in the presence of @try/@catch, we can use variable argument
list functions in the block. Program must compile with no error/warning. */
/* { dg-options "-fobjc-abi-version=1" } */
/* { dg-do compile { target *-*-darwin* } } */
__attribute__((objc_root_class)) @interface untitled
-(int)countArgs:(id)fmt, ...;
@end
@implementation untitled
-(int)countArgs:(id)fmt, ...
{
__builtin_va_list ap;
@try
{
}
@catch (id nse)
{
}
__builtin_va_start(ap,fmt);
__builtin_va_end(ap);
return 0;
}
@end