summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/ptr-conv-1.c
blob: 11dc8ce89574e141153e9392786effea96ee176f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* The intermediate conversion to __PTRDIFF_TYPE__ could be lost,
   resulting in an "invalid types in nop conversion" ICE.  */
long long a;
void
f (void)
{
  int c = 1;
  volatile int *p = &c;
  a = (long long) (__PTRDIFF_TYPE__) p;
  *p;
}