diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-06 23:41:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-06 23:41:27 +0000 |
commit | 3e06dbf48c0a54bd234fa0dca3750afb5ce0e214 (patch) | |
tree | 395124865a60c58df733fbde6c1e0ae8f27a872f /clang/test/Sema/struct-decl.c | |
parent | 5f080b43fa896eca4ec181fa8c6853603eaceaf1 (diff) | |
download | bcm5719-llvm-3e06dbf48c0a54bd234fa0dca3750afb5ce0e214.tar.gz bcm5719-llvm-3e06dbf48c0a54bd234fa0dca3750afb5ce0e214.zip |
Downgrade complaints about the use of variable-sized types within a
struct to an extension warning to match the behavior of GNU C, which
addresses the Sema part of PR3671.
llvm-svn: 66308
Diffstat (limited to 'clang/test/Sema/struct-decl.c')
-rw-r--r-- | clang/test/Sema/struct-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/struct-decl.c b/clang/test/Sema/struct-decl.c index aa2d3b6342b..e71a0b2b0c4 100644 --- a/clang/test/Sema/struct-decl.c +++ b/clang/test/Sema/struct-decl.c @@ -23,13 +23,13 @@ int foo() { return f->v + f[0].v; } -// PR3642 +// PR3642, PR3671 struct pppoe_tag { short tag_type; char tag_data[]; }; struct datatag { - struct pppoe_tag hdr; //expected-error{{variable sized type 'hdr' must be at end of struct}} + struct pppoe_tag hdr; //expected-warning{{variable sized type 'hdr' not at the end of a struct or class is a GNU extension}} char data; }; |