History

flexarray: Accept empty ones

See testcase, it's a GNU extension, but widely accepted (the linux kernel uses it). This got broken with 72b520e709d.

Michael Matz committed 4 years ago

Commit ebb4e711 parent 97125412 files · +5 −0Browse files

Showing the changes to tests/tests2/80_flexarray.c (1 of 2 files). Show all

Unified · Split

tests/tests2/80_flexarray.c+1−0
@@ -15,6 +15,7 @@ int f1int (void) { · 14 unmodified lines
15 struct wint q = {"bugs"};15 struct wint q = {"bugs"};
16 return !s[0];16 return !s[0];
17}17}
18int empty[] = {}; // GNU extension
18int main (void) {19int main (void) {
19 char s[9]="nonono";20 char s[9]="nonono";
20 static struct wchar q = {"bugs", {'c'}};21 static struct wchar q = {"bugs", {'c'}};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t