diff options
Diffstat (limited to 'debug/tst-backtrace2.c')
-rw-r--r-- | debug/tst-backtrace2.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/debug/tst-backtrace2.c b/debug/tst-backtrace2.c index 846ca35555..d139c10638 100644 --- a/debug/tst-backtrace2.c +++ b/debug/tst-backtrace2.c @@ -1,5 +1,5 @@ /* Test backtrace and backtrace_symbols. - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -94,6 +94,12 @@ fn3 (void) NO_INLINE static int do_test (void) { + /* Test BZ #18084. */ + void *buffer[1]; + + if (backtrace (buffer, 0) != 0) + FAIL (); + fn3 (); return ret; } |