fprw.c revision e49d8e7dfd3a9c96feb9935b5920973dfc0b170a
1
2/* most of the nasties in this are in the same bb, so you need to run
3with --single-step=yes to get them properly distinguished. */
4
5#include <stdlib.h>
6
7int main ( void )
8{
9   volatile double d;
10   volatile float f;
11   double* dp = malloc(sizeof(double));
12   float* fp = malloc(sizeof(float));
13   int* ip = (int*)0x1234567;
14   d += 1.0;
15   f += 10.0;
16   *dp += 2.0;
17   *fp += 20.0;
18   free(dp);
19   free(fp);
20   *dp += 3.0;
21   *fp += 30.0;
22   free(ip);
23   ip = malloc(sizeof(int));
24   * ((double*)ip) = 1.2 + d;
25   return 0;
26}
27