Richard Smith | 9ca5c42 | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 |
Richard Smith | e301ba2 | 2015-11-11 02:02:15 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1y |
Anders Carlsson | 082acde | 2009-06-26 18:41:36 +0000 | [diff] [blame] | 3 | void f() { |
Douglas Gregor | 205d044 | 2011-10-12 19:26:40 +0000 | [diff] [blame] | 4 | auto int a; // expected-warning {{'auto' storage class specifier is not permitted in C++11, and will not be supported in future releases}} |
Anders Carlsson | 082acde | 2009-06-26 18:41:36 +0000 | [diff] [blame] | 5 | int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}} |
| 6 | } |
Richard Smith | e301ba2 | 2015-11-11 02:02:15 +0000 | [diff] [blame] | 7 | |
| 8 | typedef auto PR25449(); // expected-error {{'auto' not allowed in typedef}} |