Fortran: Use OpenACC's acc_on_device builtin, fix OpenMP' __builtin_is_initial_device
[official-gcc.git] / gcc / testsuite / obj-c++.dg / method-namespace-1.mm
blob86006a73b8d5ceda7e058ff6d4e6dac65e427ec1
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
7 @implementation MyDocument
9 // This deprecated usage works
10 static void foo1() { }
12 // This preferred usage does _not_ work
13 namespace
14     {
15     void foo2() { }
16     }
18 namespace STD 
19     {
20         void foo3 () {}
21     }
23 using namespace STD;
25 - (void) GARF {
26   foo2();
27   foo3();
30 @end