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
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
ref-conv1.C
blob
1c525fbc7822bcf86df68fc93cb3516ceffc9e56
1
// PR c++/50442
2
// { dg-additional-options "-Wno-return-type" }
3
4
template <typename T> struct MoveRef { operator T& () {} };
5
template <typename T> MoveRef <T> Move(T&) {}
6
struct Thing {};
7
Thing foo(const Thing* p) { return Thing(Move(*p)); }