Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.array / p1-cxx0x.cpp
bloba3482d58afa1f8b4d7d8ead4d18312b56fa62917
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
3 void f() {
4 int b[5];
5 auto a[5] = b; // expected-error{{variable 'a' with type 'auto[5]' has incompatible initializer of type 'int[5]'}}
6 auto *c[5] = b; // expected-error{{variable 'c' with type 'auto *[5]' has incompatible initializer of type 'int[5]'}}