URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [warn4.C] - Rev 825
Go to most recent revision | Compare with Previous | Blame | View Log
// Error if we try to give an instantiation visibility after it's already
// been instantiated.
// { dg-require-visibility "" }
template <class T> struct A { void f (T); };
template <class T> void A<T>::f (T) { }
A<double> ad;
template struct __attribute ((visibility ("hidden"))) A<double>; // { dg-error "already defined" }
Go to most recent revision | Compare with Previous | Blame | View Log