// RUN: not %clang_cc1 -triple x86_64-unknown-unknown -Wno-unused-value -fcxx-exceptions -frecovery-ast -std=gnu++17 -ast-dump %s | FileCheck -strict-whitespace %s
// CHECK: FunctionDecl {{.*}} s1 'auto ()'
auto ; // valid
// FIXME: why we're finding int as the return type. int is used as a fallback type?
// CHECK: FunctionDecl {{.*}} invalid s2 'auto () -> int'
auto undef;
// CHECK: FunctionDecl {{.*}} invalid s3 'auto () -> int'
auto decltype;
// CHECK: FunctionDecl {{.*}} invalid s4 'auto ()'
auto
// CHECK: FunctionDecl {{.*}} s5 'void ()'
auto // valid, no return stmt, fallback to void
;