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
Clarify 'OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P' in 'gcc/tree-pretty-print.cc:dump_omp_clause'
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
ambiguity1.C
blob
23e38e6a15411813e17a9dae019117bf9c226505
1
// { dg-do assemble }
2
// GROUPS passed ambiguity
3
struct A {
4
A (int);
5
};
6
7
struct B {
8
B (int);
9
};
10
11
void myfunc (const A& t0); // { dg-message "note" }
12
void myfunc (const B& t0); // { dg-message "note" }
13
14
int main ()
15
{
16
myfunc(1); // { dg-error "ambiguous" }
17
}