aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/array-constraint.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-10 21:49:46 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-10 21:49:46 +0000
commit0bfe54fdc83b7b4e37c40e652d86d15aa89885b2 (patch)
tree11a7e3a0d742ebdf07a48547b142d277b176ef65 /test/Sema/array-constraint.c
parentb53e3e71383233ebb68a6a736cbe8af6d8065700 (diff)
GNU allows structs with flexible array members to be placed inside
arrays and other structs/unions as an extension. Downgrade our error to a warning. Fixes PR3540. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r--test/Sema/array-constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c
index d35b0acdfe..06b5d747ab 100644
--- a/test/Sema/array-constraint.c
+++ b/test/Sema/array-constraint.c
@@ -20,7 +20,7 @@ struct vari {
int b[];
};
-struct vari *func(struct vari a[]) { // expected-error {{'struct vari' may not be used as an array element due to flexible array member}}
+struct vari *func(struct vari a[]) { // expected-warning {{'struct vari' may not be used as an array element due to flexible array member}}
return a;
}