summaryrefslogtreecommitdiff
path: root/clang/test/CXX/dcl.decl/dcl.meaning/dcl.array/p1-cxx0x.cpp
blob: 102746c3db292d26177bb0c36364bfb934ee7db0 (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11

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 *'}}
}