summaryrefslogtreecommitdiff
path: root/debug/tst-backtrace2.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/tst-backtrace2.c')
-rw-r--r--debug/tst-backtrace2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug/tst-backtrace2.c b/debug/tst-backtrace2.c
index 846ca35555..396d743a53 100644
--- a/debug/tst-backtrace2.c
+++ b/debug/tst-backtrace2.c
@@ -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;
}