URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/33094
|
// PR c++/33094
|
// { dg-final { scan-assembler "1BIiE1cE" } }
|
// { dg-final { scan-assembler "1BIiE1cE" } }
|
// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }
|
// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }
|
// { dg-final { scan-assembler-not "1CIiE1cE" } }
|
// { dg-final { scan-assembler-not "1CIiE1cE" } }
|
|
|
// Test that B::c is emitted as an internal symbol, and C::c is
|
// Test that B::c is emitted as an internal symbol, and C::c is
|
// not emitted.
|
// not emitted.
|
|
|
namespace
|
namespace
|
{
|
{
|
template
|
template
|
class A
|
class A
|
{
|
{
|
virtual T f1() { return c; }
|
virtual T f1() { return c; }
|
static const T c = 0;
|
static const T c = 0;
|
};
|
};
|
|
|
template
|
template
|
class B
|
class B
|
{
|
{
|
static const T c = 0;
|
static const T c = 0;
|
};
|
};
|
|
|
template const T B::c;
|
template const T B::c;
|
|
|
template class A;
|
template class A;
|
template class B;
|
template class B;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.