OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [pr34895.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2 -g" }
3
//
4
// Copyright (C) 2008 Free Software Foundation, Inc.
5
// Contributed by Theodore.Papadopoulo 20 Jan 2008 
6
 
7
struct A {
8
    A() { }
9
    unsigned operator()() { return 1; }
10
};
11
struct B: public A {
12
    typedef const A base;
13
    using base::operator();
14
    B() { }
15
};
16
int
17
main() {
18
    B b;
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.