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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [crash40.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 11 April 2001 <nathan@codesourcery.com>
// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>

// Bug 1917. We were considering thunks to clones to be clones. and
// hence getting confused.

struct A { virtual ~A(); };
struct B { virtual ~B(); };

struct C: public A,B {};

template <class TYPE>
inline TYPE
sqr(const TYPE& x) {
    return 1;
}
int f(const int t) { return sqr(t); }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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