1 extern int *ip[];
   2 
   3 void foo(void);
   4 void foo(void)
   5 {
   6         ip[0] = (void *)0L;
   7         ip[1] = (int *)0L;
   8         ip[2] = (void *)0;
   9         ip[3] = (int *)0;
  10         ip[4] = (void *)(long)0;
  11         ip[5] = (int *)(long)0;
  12         ip[6] = (void *)123;
  13         ip[7] = (int *)123;
  14         ip[8] = (void *)123L;
  15         ip[9] = (int *)123L;
  16         ip[10] = (void *)(long)123;
  17         ip[11] = (int *)(long)123;
  18 }
  19 
  20 /*
  21  * check-name: constant pointers
  22  * check-command: sparse-llvm $file
  23  * check-output-ignore
  24  */