gcc/testsuite/gcc.dg/pr61162-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | int |
| 4 | fn4 (int *a) |
| 5 | { |
| 6 | return a; /* { dg-error "10:returning 'int \\*' from a function with return type 'int' makes integer from pointer without a cast" } */ |
| 7 | } |
| 8 | |
| 9 | int * |
| 10 | fn5 (int a) |
| 11 | { |
| 12 | return a; /* { dg-error "10:returning 'int' from a function with return type 'int \\*' makes pointer from integer without a cast" } */ |
| 13 | } |