URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [method-namespace-1.mm] - Rev 820
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for usage of namespace inside @implementation. */
/* { dg-do compile } */
@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
Go to most recent revision | Compare with Previous | Blame | View Log