mirror of
https://github.com/mirror/tinycc.git
synced 2026-09-01 12:07:53 +08:00
flexarray: Accept empty ones
See testcase, it's a GNU extension, but widely accepted (the
linux kernel uses it). This got broken with 72b520e709.
This commit is contained in:
@@ -15,6 +15,7 @@ int f1int (void) {
|
||||
struct wint q = {"bugs"};
|
||||
return !s[0];
|
||||
}
|
||||
int empty[] = {}; // GNU extension
|
||||
int main (void) {
|
||||
char s[9]="nonono";
|
||||
static struct wchar q = {"bugs", {'c'}};
|
||||
|
||||
Reference in New Issue
Block a user