diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/foreach-7.m')
-rw-r--r-- | gcc/testsuite/objc.dg/foreach-7.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/testsuite/objc.dg/foreach-7.m b/gcc/testsuite/objc.dg/foreach-7.m index c56521172df..a82869223b1 100644 --- a/gcc/testsuite/objc.dg/foreach-7.m +++ b/gcc/testsuite/objc.dg/foreach-7.m @@ -1,5 +1,8 @@ /* Test basic Objective-C foreach syntax. This tests warnings and errors. */ -/* { dg-do compile } */ +/* + { dg-options "-ftrack-macro-expansion=0" } + { dg-do compile } +*/ #import "../objc-obj-c++-shared/TestsuiteObject.h" #import <objc/objc.h> @@ -37,10 +40,10 @@ int main (void) id object = nil; for (typedef int my_typedef in array) /* { dg-error "declaration of non-variable" } */ - ; /* { dg-error "iterating variable in fast enumeration is not an object" "" { target *-*-* } 39 } */ + ; /* { dg-error "iterating variable in fast enumeration is not an object" "" { target *-*-* } 42 } */ for (function () in nil) /* { dg-error "invalid iterating variable in fast enumeration" } */ - ; /* { dg-error "iterating variable in fast enumeration is not an object" "" { target *-*-* } 42 } */ + ; /* { dg-error "iterating variable in fast enumeration is not an object" "" { target *-*-* } 45 } */ for (object_function () in nil) /* { dg-error "invalid iterating variable in fast enumeration" } */ ; |