repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
ext
/
visibility
/
assign1.C
blob
cbd909ee1910a8d5cdd1dd46f96ee34de776bec0
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 D : public B {
10
// The implicit assignment operator should be hidden.
11
} __attribute__((visibility("hidden")));
12
13
D d1, d2;
14
15
void f() {
16
d1 = d2;
17
}