summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20011106-1.c
blob: 9363780a65a69aa4fafccc2300a38869ccbfe830 (plain)
1
2
3
4
5
6
7
/* Test that functions passed to the comma operator are correctly converted
   to pointers.  */
/* Origin: Joseph Myers <jsm28@cam.ac.uk>.  */

void foo (void);
void (*fp) (void);
char x[sizeof (1, foo) == sizeof (fp) ? 1 : -1];