diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-09-01 18:42:41 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-09-01 18:42:41 +0000 |
commit | 2c5208c59fcdae2e47fe8f98e6506bb098ea2005 (patch) | |
tree | 1abdf0099d67ce56edc7476c8428865c4e83923e /clang/test/Sema/array-init.c | |
parent | 9c64e6117623e5d46474880d18464c2640032ed1 (diff) | |
download | bcm5719-llvm-2c5208c59fcdae2e47fe8f98e6506bb098ea2005.tar.gz bcm5719-llvm-2c5208c59fcdae2e47fe8f98e6506bb098ea2005.zip |
fix one more this-is-not-a-constant error. test included
llvm-svn: 55609
Diffstat (limited to 'clang/test/Sema/array-init.c')
-rw-r--r-- | clang/test/Sema/array-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c index 7d6e6c6d281..bf3d83d2654 100644 --- a/clang/test/Sema/array-init.c +++ b/clang/test/Sema/array-init.c @@ -235,3 +235,6 @@ struct soft_segment_descriptor gdt_segs[] = { {(int) &dblfault_tss}, { (int)xpto}, }; + +static void sppp_ipv6cp_up(); +const struct {} ipcp = { sppp_ipv6cp_up }; //expected-warning{{empty struct extension}} expected-warning{{excess elements in array initializer}} |