URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do run }
|
// { dg-do run }
|
// { dg-options "-fno-weak" }
|
// { dg-options "-fno-weak" }
|
// Test that -fno-weak doesn't break explicit instantiation of static data.
|
// Test that -fno-weak doesn't break explicit instantiation of static data.
|
|
|
template struct A
|
template struct A
|
{
|
{
|
static int i;
|
static int i;
|
};
|
};
|
|
|
template int A::i = 42;
|
template int A::i = 42;
|
|
|
template class A;
|
template class A;
|
|
|
int main ()
|
int main ()
|
{
|
{
|
return (A::i != 42);
|
return (A::i != 42);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.