Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20041212-1.c

raw
1 /* A function pointer compared with a void pointer should not be canonicalized.
2 See PR middle-end/17564. */
3 void abort (void);
4 void exit (int);
5
6 void *f (void) __attribute__ ((__noinline__));
7 void *
8 f (void)
9 {
10 return f;
11 }
12 int
13 main (void)
14 {
15 if (f () != f)
16 abort ();
17 exit (0);
18 }