Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.dg / ext / visibility / assign1.C
blobb25999e8ee96e295aff05ebb4298c0c23b78ea65
1 /* { dg-do compile } */
2 /* { dg-require-visibility "" } */
3 /* { dg-final { scan-hidden "_ZN1DaSERKS_" } } */
5 struct B {
6   B& operator=(const B&);
7 };
9 struct __attribute__((visibility("hidden"))) D : public B {
10   // The implicit assignment operator should be hidden.
13 __attribute__((visibility("hidden"))) D d1;
14 __attribute__((visibility("hidden"))) D d2;
16 void f() {
17   d1 = d2;