njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | #include <stdio.h> |
mueller | 535cc6e | 2004-01-03 14:18:02 +0000 | [diff] [blame] | 2 | #include <stdlib.h> |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 3 | |
| 4 | int gcc_cant_inline_me ( int ); |
| 5 | |
| 6 | int main () |
| 7 | { |
| 8 | int *x, y; |
| 9 | |
| 10 | x = (int *) malloc (sizeof (int)); |
| 11 | |
| 12 | y = *x == 173; |
| 13 | |
| 14 | if (gcc_cant_inline_me(y)) { } |
| 15 | |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | /* must be AFTER main */ |
| 20 | int gcc_cant_inline_me ( int n ) |
| 21 | { |
| 22 | if (n == 42) |
| 23 | return 1; /* forty-two, dudes! */ |
| 24 | else |
| 25 | return 0; /* some other number, dudes! */ |
| 26 | } |
| 27 | |
| 28 | |