fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. volatile long (*volatile ptr)[1] = NULL;
  5. volatile long v = (long) *ptr;
  6.  
  7. printf("%ld\n", v);
  8.  
  9.  
  10. volatile long (*ptr2)[1] = NULL;
  11. enum { this_is_constant_in_gcc = ((void*)ptr2 == (void*)*ptr2) };
  12. printf("%d\n", this_is_constant_in_gcc);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4304KB
stdin
Standard input is empty
stdout
0
1