blob: aa92bbe4f1f1784dcebed44d1e8ee093d5b8cad1 [file] [log] [blame]
Anders Carlssone89d1592009-06-26 18:41:36 +00001// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
2void f() {
Anders Carlsson3591b1a2009-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 Carlssone89d1592009-06-26 18:41:36 +00004 int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}}
5}