Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++98 |
Anders Carlsson | e89d159 | 2009-06-26 18:41:36 +0000 | [diff] [blame] | 2 | void f() { |
Richard Smith | 8f4fb19 | 2011-09-04 19:54:14 +0000 | [diff] [blame] | 3 | auto int a; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++0x}} |
| 4 | int auto b; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++0x}} |
| 5 | auto c; // expected-warning {{C++0x extension}} expected-error {{requires an initializer}} |
| 6 | static auto d = 0; // expected-warning {{C++0x extension}} |
| 7 | auto static e = 0; // expected-warning {{C++0x extension}} |
Anders Carlsson | e89d159 | 2009-06-26 18:41:36 +0000 | [diff] [blame] | 8 | } |