summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/using22.C
blob: 2396f9ab18596ce90f41bc86977c5f5c7c898b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/39786

namespace A {
    char (*f(char *p))[13] { return 0; }
}

namespace B {
    namespace C {
        char (*f(int p))[42] { return 0; }
    }
    using namespace C;
}

using namespace B;
using namespace A;

char x[sizeof *::f(0) == 42 ? 1 : -1];