diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wlarger-than.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wlarger-than.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wlarger-than.c b/gcc/testsuite/gcc.dg/Wlarger-than.c new file mode 100644 index 000000000..609a7ae4f --- /dev/null +++ b/gcc/testsuite/gcc.dg/Wlarger-than.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do compile } */ +/* { dg-options "-Wlarger-than-32768" } */ + +/* -Wlarger-than with functions returning void used to segfault. + Source: PR 602, testsuite-ized by Neil Booth 21 Jan 2000. */ + +static void foo (void) {} + |