Commit c84d88e4 by Mark Wielaard Committed by Mark Wielaard

gcc.dg/guality/restrict.c: Add `used' attribute to all variables.

From-SVN: r214219
parent 6cd87a2e
2014-08-20 Mark Wielaard <mjw@redhat.com>
* gcc.dg/guality/restrict.c: Add `used' attribute to all variables.
2014-08-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2014-08-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* lib/gcc-defs.exp (${tool}_check_unsupported_p): * lib/gcc-defs.exp (${tool}_check_unsupported_p):
......
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-std=c99 -gdwarf-3" } */ /* { dg-options "-std=c99 -gdwarf-3" } */
int *ip; int *ip __attribute__((used));
const int *cip; const int *cip __attribute__((used));
int * restrict irp; int * restrict irp __attribute__((used));
int * const icp; int * const icp __attribute__((used));
const int * restrict cirp; const int * restrict cirp __attribute__((used));
int * const restrict icrp; int * const restrict icrp __attribute__((used));
const int * const restrict cicrp; const int * const restrict cicrp __attribute__((used));
int * const volatile restrict cvirp; int * const volatile restrict cvirp __attribute__((used));
const volatile int * restrict pcvir; const volatile int * restrict pcvir __attribute__((used));
static __attribute__((noclone, noinline)) void * static __attribute__((noclone, noinline)) void *
cpy (void * restrict s1, const void * restrict s2, unsigned int n) cpy (void * restrict s1, const void * restrict s2, unsigned int n)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment