1 /* { dg-do compile } */ 2 /* { dg-require-visibility "" } */ 3 /* { dg-final { scan-hidden "_ZN1DaSERKS_" } } */ 4 5 struct B { 6 B& operator=(const B&); 7 }; 8 9 struct __attribute__((visibility("hidden"))) D : public B { 10 // The implicit assignment operator should be hidden. 11 }; 12 13 __attribute__((visibility("hidden"))) D d1; 14 __attribute__((visibility("hidden"))) D d2; 15 f()16void f() { 17 d1 = d2; 18 } 19