blob: 33e6f678592a0c3bbaa298304d14f13a473c92a4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Warn 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-warning "already defined" }
|