repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
MIPS32R6 and MIPS64R6 support
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg17.C
blob
a138f9ad908d376012679312085691887d895154
1
// { dg-do assemble }
2
// The default assignment operator for B uses array assignment, so we can't
3
// just disallow it...
4
5
struct A { A& operator=(const A&); };
6
struct B { A f[20]; };
7
8
int a1[20], a2[20];
9
B b1, b2;
10
11
void
12
test ()
13
{
14
b1 = b2; /* OK */
15
a1 = a2; /* { dg-error "" } array assignment */
16
}