OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* lib/compat.exp: Handle dg-options per source file.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
builtin1.C
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
}