Home | History | Annotate | Download | only in tests
      1 #include <stdio.h>
      2 #include <stdlib.h>
      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 
     29