URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR c++/20145
|
// PR c++/20145
|
// { dg-options "-Wnon-virtual-dtor" }
|
// { dg-options "-Wnon-virtual-dtor" }
|
# 1 "t.cc"
|
# 1 "t.cc"
|
# 1 ""
|
# 1 ""
|
# 1 ""
|
# 1 ""
|
# 1 "t.cc"
|
# 1 "t.cc"
|
# 1 "include/t.h" 1 3 4
|
# 1 "include/t.h" 1 3 4
|
// Declare the template with explicit C++ linkage in case system
|
// Declare the template with explicit C++ linkage in case system
|
// headers have implicit C linkage.
|
// headers have implicit C linkage.
|
extern "C++" {
|
extern "C++" {
|
template class t
|
template class t
|
{
|
{
|
virtual void f();
|
virtual void f();
|
};
|
};
|
}
|
}
|
# 2 "t.cc" 2
|
# 2 "t.cc" 2
|
|
|
void f(void)
|
void f(void)
|
{
|
{
|
t<1> h;
|
t<1> h;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.