* gcc.dg/guality/pr49888.c (v): Add __attribute__((used)).
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Jan 2015 20:41:04 +0000 (21:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Jan 2015 20:41:04 +0000 (21:41 +0100)
From-SVN: r219913

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr49888.c

index ee46288d3736eaec9424b750dbfaf812b1c6e1a6..2bf8fdecbde5dcd8b48258daa56da5ef26502c4a 100644 (file)
@@ -1,5 +1,7 @@
 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
 
+       * gcc.dg/guality/pr49888.c (v): Add __attribute__((used)).
+
        PR sanitizer/64632
        * g++.dg/ubsan/pr64632.C: New test.
 
index a0e26cf8327ff3b3d483c238673c21afa28f9fc7..89deca4ac3be2f634704aa781512628c6fd02f00 100644 (file)
@@ -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)