1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
2 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++98 -Wno-c++11-extensions
7 template<typename U> only(U) = delete;
17 while (auto a = false) {
20 for (; auto a = false; ) {
26 int arr[] = {1, 2, 3};
32 static const auto n = 'x';
34 auto m = 0; // expected-error {{'auto' not allowed in non-static class member}}
38 static const auto a; // expected-error {{declaration of variable 'a' with type 'const auto' requires an initializer}}
39 static const auto b = 0;