blob: f3daf1a19f3cafb43d58cec892a15ffdec7befdd [file] [log] [blame]
Richard Smith9ca5c422011-10-13 22:29:44 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
Richard Smithe301ba22015-11-11 02:02:15 +00002// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1y
Anders Carlsson082acde2009-06-26 18:41:36 +00003void f() {
Douglas Gregor205d0442011-10-12 19:26:40 +00004 auto int a; // expected-warning {{'auto' storage class specifier is not permitted in C++11, and will not be supported in future releases}}
Anders Carlsson082acde2009-06-26 18:41:36 +00005 int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}}
6}
Richard Smithe301ba22015-11-11 02:02:15 +00007
8typedef auto PR25449(); // expected-error {{'auto' not allowed in typedef}}