URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [anon6.C] - Rev 301
Compare with Previous | Blame | View Log
// PR c++/33094
// { dg-final { scan-assembler "1BIiE1cE" } }
// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }
// { dg-final { scan-assembler-not "1CIiE1cE" } }
// Test that B<int>::c is emitted as an internal symbol, and C<int>::c is
// not emitted.
namespace
{
template <typename T>
class A
{
virtual T f1() { return c; }
static const T c = 0;
};
template <typename T>
class B
{
static const T c = 0;
};
template <typename T> const T B<T>::c;
template class A<int>;
template class B<int>;
}