blob: 6ad140fe5480738b0165c0392c1d7ae5aa74100a [file] [log] [blame]
// PR c++/85493
// { dg-do compile { target c++11 } }
struct no_def {
no_def() = delete;
};
template<class...>
int foo() = delete;
template<class>
void test() {
decltype(no_def()) a1; // { dg-error "deleted" }
decltype(no_def(1,2,3)) a2; // { dg-error "no match" }
decltype(foo<>()) a3; // { dg-error "deleted" }
}