view gcc/testsuite/gcc.c-torture/compile/ptr-conv-1.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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;
}