1/* Test for usage of namespace inside @implementation. */ 2/* { dg-do compile } */ 3// { dg-additional-options "-Wno-objc-root-class" } 4@interface MyDocument 5@end 6 7@implementation MyDocument 8 9// This deprecated usage works 10static void foo1() { } 11 12// This preferred usage does _not_ work 13namespace 14 { 15 void foo2() { } 16 } 17 18namespace STD 19 { 20 void foo3 () {} 21 } 22 23using namespace STD; 24 25- (void) GARF { 26 foo2(); 27 foo3(); 28} 29 30@end 31