From 01910a50c4ea3fdec7b6a216861764fb28751cec Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 27 Apr 2009 18:31:32 +0000 Subject: x86-32 ABI: Fix crash on return of structure with flexible array member. Also, spell bitfield more consistently as bit-field. llvm-svn: 70220 --- clang/test/CodeGen/x86_32-arguments.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/test/CodeGen/x86_32-arguments.c') diff --git a/clang/test/CodeGen/x86_32-arguments.c b/clang/test/CodeGen/x86_32-arguments.c index 8d1e5dd8ad1..95307e929ad 100644 --- a/clang/test/CodeGen/x86_32-arguments.c +++ b/clang/test/CodeGen/x86_32-arguments.c @@ -123,4 +123,7 @@ struct { struct {} a; struct { float a[1]; } b; } f25(void) {} struct s26 { struct { char a, b; } a; struct { char a, b } b; } f26(void) {} struct s27 { struct { char a, b, c; } a; struct { char a } b; } f27(void) {} +// RUN: grep 'void @f28(%.truct.s28\* noalias sret %agg.result)' %t && +struct s28 { int a; int b[] } f28(void) {} + // RUN: true -- cgit v1.2.3