Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Parser / designator.c
blob6badab7a75c3a9ac3f30f28064ce0401903f56b9
1 // RUN: %clang_cc1 -fsyntax-only %s -verify -pedantic
3 int X[] = {
4 [4]4, // expected-warning {{use of GNU 'missing =' extension in designator}}
5 [5] = 7
6 };
8 struct foo {
9 int arr[10];
12 struct foo Y[10] = {
13 [4] .arr [2] = 4,
15 // This is not the GNU array init designator extension.
16 [4] .arr [2] 4 // expected-error {{expected '=' or another designator}}