repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae70.C
blob
48ea70a61a4269305d981d3461b476562608e530
1
// PR c++/113789
2
// { dg-do compile { target c++11 } }
3
4
struct AutoPtr {
5
AutoPtr() = default;
6
AutoPtr(AutoPtr&) {}
7
};
8
9
template<class T> auto f(T p, int) -> decltype(throw p, 1) = delete;
10
template<class T> void f(T p, long);
11
12
void
13
g ()
14
{
15
f (AutoPtr (), 42); // { dg-error "use of deleted function" "" { target c++20_down } }
16
}