brintos

brintos / llvm-project-archived public Read only

0
0
Text · 376 B · 6badab7 Raw
18 lines · c
1// RUN: %clang_cc1 -fsyntax-only %s -verify -pedantic2 3int X[] = {4  [4]4,       // expected-warning {{use of GNU 'missing =' extension in designator}}5  [5] = 76};7 8struct foo {9  int arr[10];10};11 12struct foo Y[10] = {13  [4] .arr [2] = 4,14 15  // This is not the GNU array init designator extension.16  [4] .arr [2] 4  // expected-error {{expected '=' or another designator}}17};18