blob: 654acb5ad20c39049d7a838488bbb38770751fa5 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
Anders Carlsson082acde2009-06-26 18:41:36 +00002void f() {
Anders Carlsson0d142912009-07-11 01:00:52 +00003 auto int a; // expected-error{{cannot combine with previous 'auto' declaration specifier}} // expected-error{{declaration of variable 'a' with type 'auto' requires an initializer}}
Anders Carlsson082acde2009-06-26 18:41:36 +00004 int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}}
5}