Home | History | Annotate | Download | only in blocks
      1 #include <stdio.h>
      2 
      3 int main()
      4 {
      5     int c = 1;
      6 
      7     int (^add)(int, int) = ^int(int a, int b)
      8     {
      9         return a + b + c; // Set breakpoint 0 here.
     10     };
     11 
     12     int (^neg)(int) = ^int(int a)
     13     {
     14         return -a;
     15     };
     16 
     17     printf("%d\n", add(3, 4));
     18     printf("%d\n", neg(-5)); // Set breakpoint 1 here.
     19 
     20     return 0;
     21 }
     22