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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.dg
/
overload
/
builtin1.C
blob
9f66e336065103b7bd36d05cd31555af37f80286
1
// Test that we don't discard builtin candidates inappropriately.
2
3
struct B { };
4
5
struct A {
6
operator int ();
7
operator B ();
8
};
9
10
void operator+ (B, B); // { dg-error "" "candidate" }
11
12
int main ()
13
{
14
A a;
15
a + a; // { dg-error "" "ambiguous" }
16
}