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
d: Fix gdc -O2 -mavx generates misaligned vmovdqa instruction [PR114171]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
opover.C
blob
3ec833e2e98f2409601717436cb2218545ec6079
1
// { dg-do assemble }
2
// Bug: g++ prefers a non-matching operator== over user-defined conversions
3
// and a default operator==.
4
5
struct A {
6
operator int ();
7
};
8
9
struct B {
10
friend int operator== (B, int);
11
};
12
13
int foo (A& a) {
14
return a == 1;
15
}