From d302f41d4e9d04c5a153683b58b3bb754c736404 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 20 Jan 2015 21:41:04 +0100 Subject: [PATCH] * gcc.dg/guality/pr49888.c (v): Add __attribute__((used)). From-SVN: r219913 --- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/gcc.dg/guality/pr49888.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ee46288d373..2bf8fdecbde 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2015-01-20 Jakub Jelinek + * gcc.dg/guality/pr49888.c (v): Add __attribute__((used)). + PR sanitizer/64632 * g++.dg/ubsan/pr64632.C: New test. diff --git a/gcc/testsuite/gcc.dg/guality/pr49888.c b/gcc/testsuite/gcc.dg/guality/pr49888.c index a0e26cf8327..89deca4ac3b 100644 --- a/gcc/testsuite/gcc.dg/guality/pr49888.c +++ b/gcc/testsuite/gcc.dg/guality/pr49888.c @@ -2,7 +2,7 @@ /* { dg-do run } */ /* { dg-options "-g" } */ -static int v; +static int v __attribute__((used)); static void __attribute__((noinline, noclone)) f (int *p) -- 2.30.2