brintos

brintos / llvm-project-archived public Read only

0
0
Text · 318 B · a3482d5 Raw
8 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++112 3void 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]'}}7}8