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
aarch64: Introduce new unspecs for smax/smin
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
explicit1.C
blob
b8284abaa684f7760c8c69466357efcafc1655b6
1
// { dg-do assemble }
2
struct A1 {
3
explicit A1(int) { }
4
} a1(1);
5
6
struct A {
7
explicit A(int);
8
} a(1);
9
10
A::A(int) {
11
}
12
13
void foo(A a) {
14
foo(a);
15
foo(1); // { dg-error "" } not allowed
16
}