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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
overload8.C
blob
bf129b02c2b03309d22f0de42d4d70722b732f0c
1
// { dg-do assemble }
2
// GROUPS passed overloading
3
typedef struct{double re,im;} complex;
4
class Complex{public:double re,im;
5
inline void operator=(Complex&X){re=X.re; im=X.im;}};
6
void zxcvbnm(int n,...){n=1;}
7
int main(){complex c; Complex C;
8
zxcvbnm(1,c);
9
zxcvbnm(1,C);}