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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
DRs
/
dr2137-2.C
blob
ba90860b3afea34db78f267dac7623a294e7c619
1
// DR 2137
2
// { dg-do link { target c++11 } }
3
4
// Test that copying Q is better than converting to R.
5
6
struct Q {
7
Q() { }
8
Q(const Q&) { }
9
};
10
11
struct R {
12
R(const Q&);
13
};
14
15
void f(Q) { }
16
void f(R);
17
18
int main()
19
{
20
f({Q()});
21
}