blob: 8d22469825c0a5592564c201b44ff4555a18f7ff [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++98
Anders Carlssone89d1592009-06-26 18:41:36 +00002void f() {
Richard Smith8f4fb192011-09-04 19:54:14 +00003 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 Carlssone89d1592009-06-26 18:41:36 +00008}