blob: dcec899379b6300f1a8e4f6ab32acfcb84bcee47 [file] [log] [blame]
// { dg-options "-std=c++1y -pedantic-errors" }
auto f() { return 42; } // { dg-error "deduced return type" }
auto f(); // OK
int f(); // { dg-error "new declaration" }
template <class T> auto f(T t) { return t; }
template <class T> T f(T t);
int main()
{
f(42); // { dg-error "ambiguous" }
}