From 220ee4101126c94a730d42c00a1a86050aade688 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 6 Feb 2008 05:33:51 +0000 Subject: Fix the codegen of structs with flexible array members. llvm-svn: 46806 --- clang/test/CodeGen/struct.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/test/CodeGen/struct.c') diff --git a/clang/test/CodeGen/struct.c b/clang/test/CodeGen/struct.c index fc79f0a2f48..1b476f823d5 100644 --- a/clang/test/CodeGen/struct.c +++ b/clang/test/CodeGen/struct.c @@ -138,6 +138,10 @@ void f12() } /* struct initialization */ -struct a13 {int b; int c}; +struct a13 {int b; int c;}; struct a13 c13 = {5}; struct a14 { short a; int b; } x = {1, 1}; + +/* flexible array members */ +struct a15 {char a; int b[];} c15; +int a16(void) {c15.a = 1;} -- cgit v1.2.3