diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/objc-foreach-5.m')
-rw-r--r-- | gcc/testsuite/objc.dg/objc-foreach-5.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/objc.dg/objc-foreach-5.m b/gcc/testsuite/objc.dg/objc-foreach-5.m index cb157819978..7113a7ac262 100644 --- a/gcc/testsuite/objc.dg/objc-foreach-5.m +++ b/gcc/testsuite/objc.dg/objc-foreach-5.m @@ -2,8 +2,10 @@ /* { dg-do compile { target *-*-darwin* } } */ /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */ /* { dg-skip-if "No NeXT fast enum. pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */ +/* { dg-additional-options "-framework Foundation" { target { *-*-darwin* } } } */ -#import <Foundation/Foundation.h> +#include <Foundation/NSArray.h> +#include <Foundation/NSAutoreleasePool.h> NSArray * createTestVictim(unsigned capacity) { NSMutableArray * arr = [[NSMutableArray alloc] initWithCapacity:capacity]; |