URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [derived3.C] - Rev 338
Compare with Previous | Blame | View Log
// { dg-do compile }
// by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
// Copyright (C) 1999, 2002 Free Software Foundation
template<class T>
class X {
class Y : public T
{ // { dg-error "base type .* fails to be" }
};
Y y; // { dg-message "instantiated" }
};
int main() {
X<int> x; // { dg-message "instantiated" }
}