blob: 5197fb1c960398cd347ba2aa8a9b252f6351d1b3 [file] [log] [blame]
// PR c++/35688
// { dg-require-visibility "" }
// { dg-options "-fvisibility=hidden" }
// { dg-final { scan-hidden "_ZN1s6vectorI1AEC1Ev" } }
// { dg-final { scan-hidden "_ZN1s3fooI1AEEvT_" } }
namespace s __attribute__((visibility("default"))) {
template <class T>
class vector {
public:
vector() { }
};
template <class T>
void foo(T t) {
}
}
class A {
public:
A() { }
};
s::vector<A> v;
int main() {
A a;
s::foo(a);
}