diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/torture/pr54109.c')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/gcc.dg/torture/pr54109.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/torture/pr54109.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/torture/pr54109.c deleted file mode 100644 index d4d05263d..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.dg/torture/pr54109.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-do compile } */ - -typedef struct -{ - unsigned long bits[4]; -} nodemask_t; - -struct cpuset -{ - long flags; - nodemask_t mems_allowed; - struct cpuset *parent; -} b; - -void func1(unsigned long *p1, int p2) -{ - p1[p2 - 1] = 0; -} - -void func2(nodemask_t *p1, int p2) -{ - func1(p1->bits, p2); -} - -void func3(void) -{ - /* This accesses b.flags. */ - func2(&b.mems_allowed, 0); -} |