// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s -std=c++11
;
// PR 9278: auto is not allowed in typedefs, except with a trailing return type.
typedef auto *AutoPtr; // expected-error{{'auto' not allowed in typedef}}
typedef auto ; // expected-error{{'auto' not allowed in typedef}}
typedef auto -> ;
void
void
void
;
void
; // expected-error{{'auto' not allowed in template parameter}}
int ints = ;
; // expected-error{{'auto' not allowed in template parameter}}
; // expected-error{{'auto' not allowed here}}
; // expected-error{{expected class name}}
; // expected-error{{'auto' not allowed in template argument}}
using A = auto; // expected-error{{'auto' not allowed in type alias}}
auto auto; // expected-error{{'auto' not allowed in function return type}}