diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/parse/crash7.C')
-rw-r--r-- | gcc/testsuite/g++.dg/parse/crash7.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/parse/crash7.C b/gcc/testsuite/g++.dg/parse/crash7.C new file mode 100644 index 00000000000..533a0ec0f34 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/crash7.C @@ -0,0 +1,19 @@ +// { dg-do compile } + +// Copyright (C) 2003 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 23 Jul 2003 <nathan@codesourcery.com> + +// PR 11282. Infinite loop/memory consumption + +struct parameter_struct_t { + char short_option; + char *long_option; +}; + +parameter_struct_t *parameters[] = { + { + 'f'; // { dg-error "error before" "" } + "from"; + }; +}; + |