aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr30744-1.c
blob: f08f3be172ac4daa1be7bfd3841af3a1aaf23e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2" } */
#include <stddef.h>

typedef __INTPTR_TYPE__ my_intptr_t;

typedef struct {
  my_intptr_t unique;
} G;

void r(G* n)
{
  my_intptr_t p;
  if (((G *) ((void *)((~(my_intptr_t)(p))))) != ((void *)0)) {
    ((G *) ((void *)((~(my_intptr_t)(p)))))->unique = n->unique;
  }
}