From 952eddef9aff85b1e92626e89baaf7a360e2ac85 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 22 Dec 2013 00:07:40 +0000 Subject: Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3): https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841 --- test/Sema/array-init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/Sema/array-init.c') diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index f92852f..ae2c742 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -226,7 +226,8 @@ void emptyInit() {struct {} x[] = {6};} //expected-warning{{empty struct is a GN // 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:5;} x[] = {6}; //expected-error{{initializer for aggregate with no elements}} \ +// expected-warning {{struct without named members is a GNU extension}} } struct {int a; int:5;} noNamedImplicit[] = {1,2,3}; int noNamedImplicitCheck[sizeof(noNamedImplicit) == 3 * sizeof(*noNamedImplicit) ? 1 : -1]; -- cgit v1.1