blob: 86006a73b8d5ceda7e058ff6d4e6dac65e427ec1 [file] [log] [blame]
/* Test for usage of namespace inside @implementation. */
/* { dg-do compile } */
// { dg-additional-options "-Wno-objc-root-class" }
@interface MyDocument
@end
@implementation MyDocument
// This deprecated usage works
static void foo1() { }
// This preferred usage does _not_ work
namespace
{
void foo2() { }
}
namespace STD
{
void foo3 () {}
}
using namespace STD;
- (void) GARF {
foo2();
foo3();
}
@end