2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
|
2009-06-27 02:41:36 +08:00
|
|
|
void f() {
|
2011-10-13 03:26:40 +08:00
|
|
|
auto int a; // expected-warning {{'auto' storage class specifier is not permitted in C++11, and will not be supported in future releases}}
|
2009-06-27 02:41:36 +08:00
|
|
|
int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}}
|
|
|
|
}
|