mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
8fbe78f6fc
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
18 lines
376 B
C
18 lines
376 B
C
// RUN: %clang_cc1 -fsyntax-only %s -verify -pedantic
|
|
|
|
int X[] = {
|
|
[4]4, // expected-warning {{use of GNU 'missing =' extension in designator}}
|
|
[5] = 7
|
|
};
|
|
|
|
struct foo {
|
|
int arr[10];
|
|
};
|
|
|
|
struct foo Y[10] = {
|
|
[4] .arr [2] = 4,
|
|
|
|
// This is not the GNU array init designator extension.
|
|
[4] .arr [2] 4 // expected-error {{expected '=' or another designator}}
|
|
};
|