llvm-project/clang/test/SemaCXX/array-bound-merge.cpp

10 lines
200 B
C++

// RUN: clang-cc -fsyntax-only -verify %s
// PR5515
extern int a[];
int a[10];
extern int b[10];
int b[];
extern int c[1];
int c[] = {1,2}; // expected-error {{excess elements in array initializer}}