1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
2*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1y
f()3*67e74705SXin Li void f() {
4*67e74705SXin Li auto int a; // expected-warning {{'auto' storage class specifier is not permitted in C++11, and will not be supported in future releases}}
5*67e74705SXin Li int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}}
6*67e74705SXin Li }
7*67e74705SXin Li
8*67e74705SXin Li typedef auto PR25449(); // expected-error {{'auto' not allowed in typedef}}
9