c++/24367: Infinite recursion of typedef substitution
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / pr12028.cc
CommitLineData
ec322823
SW
1class A{};
2class B{};
3class C: public B {};
4
5namespace D{
6 int foo (A) { return 11; }
7 int foo (C) { return 12; }
8}
9
10int main()
11{
12 A a;
13 B b;
14 C c;
15
16 D::foo (a);
17 // D::foo (b);
18 D::foo (c);
19
20 return 0;
21}
This page took 0.957886 seconds and 4 git commands to generate.