OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / overload6.C
1 // { dg-do run  }
2 extern "C" void abort();
3
4 struct S1
5 {
6   int f() { return 0; }
7   int f() const { return 1; }
8 };
9
10 struct S2 : public S1
11 {
12 };
13
14 int main()
15 {
16   S2 s2;
17   if (s2.f() != 0)
18     abort ();
19 }