Adjust self tests to cope with GDB built as a C++ program
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / pr12028.cc
1 class A{};
2 class B{};
3 class C: public B {};
4
5 namespace D{
6 int foo (A) { return 11; }
7 int foo (C) { return 12; }
8 }
9
10 int 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.030844 seconds and 4 git commands to generate.