* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / obj-c++.dg / method-namespace-1.mm
blob6095f572ccacdf4dfe25cc22fd86a718ebc25a76
1 /* Test for usage of namespace inside @implementation. */
2 /* { dg-do compile } */
3 @interface MyDocument
4 @end
6 @implementation MyDocument
8 // This deprecated usage works
9 static void foo1() { }
11 // This preferred usage does _not_ work
12 namespace
13     {
14     void foo2() { }
15     }
17 namespace STD 
18     {
19         void foo3 () {}
20     }
22 using namespace STD;
24 - (void) GARF {
25   foo2();
26   foo3();
29 @end