summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/auto-cxx98.cpp
blob: 8d22469825c0a5592564c201b44ff4555a18f7ff (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++98
void f() {
  auto int a; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++0x}}
  int auto b; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++0x}}
  auto c; // expected-warning {{C++0x extension}} expected-error {{requires an initializer}}
  static auto d = 0; // expected-warning {{C++0x extension}}
  auto static e = 0; // expected-warning {{C++0x extension}}
}
OpenPOWER on IntegriCloud