blob: 81bb7d52a820341dd8b77f28fb1ee37d1d94b8fd [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* } } */
@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