diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-02-03 15:47:04 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-02-03 15:47:04 +0000 |
commit | acbabf177079ed41c055b1484465082f9f1d3d06 (patch) | |
tree | 4034b17c92b7e4b5344412e7dc8ce12557b07003 /test/Sema/array-init.c | |
parent | 8fbbae532e3cb5f45e9e862c60d48c78b0997325 (diff) |
Don't warn about anonymous struct/union in C11.
Also, in C, call this a C11 extension rather than a GNU extension.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-init.c')
-rw-r--r-- | test/Sema/array-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index bd1dfd2c06..a979fb9e57 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -245,7 +245,7 @@ static void sppp_ipv6cp_up(); const struct {} ipcp = { sppp_ipv6cp_up }; //expected-warning{{empty struct is a GNU extension}} \ // expected-warning{{excess elements in struct initializer}} -struct _Matrix { union { float m[4][4]; }; }; //expected-warning{{anonymous unions are a GNU extension in C}} +struct _Matrix { union { float m[4][4]; }; }; //expected-warning{{anonymous unions are a C11 extension}} typedef struct _Matrix Matrix; void test_matrix() { const Matrix mat1 = { |