summaryrefslogtreecommitdiffstats
path: root/test/CXX/dcl.decl/dcl.meaning/dcl.array/p1-cxx0x.cpp
blob: b0575b8236bb408c4c724df8fa595aa8e22306a4 (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x

void f() {
  int b[5];
  auto a[5] = b; // expected-error{{'a' declared as array of 'auto'}}
  auto *c[5] = b; // expected-error{{'c' declared as array of 'auto *'}}
}