From d1969d803cfcc65f1c334df4cc89c7fdd33ee4c9 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 22 Jul 2009 00:43:08 +0000 Subject: Prep for new warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76709 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/array-init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/Sema/array-init.c') diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index 50148a83ae..b7542b301b 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -219,10 +219,10 @@ void varArray() { } // PR2151 -int emptyInit() {struct {} x[] = {6};} //expected-warning{{empty struct extension}} expected-error{{initializer for aggregate with no elements}} +void emptyInit() {struct {} x[] = {6};} //expected-warning{{empty struct extension}} expected-error{{initializer for aggregate with no elements}} -int noNamedInit() { -struct {int:5;} x[] = {6}; //expected-error{{initializer for aggregate with no elements}} +void noNamedInit() { + struct {int:5;} x[] = {6}; //expected-error{{initializer for aggregate with no elements}} } struct {int a; int:5;} noNamedImplicit[] = {1,2,3}; int noNamedImplicitCheck[sizeof(noNamedImplicit) == 3 * sizeof(*noNamedImplicit) ? 1 : -1]; -- cgit v1.2.3-70-g09d2