fprw.c revision e739ac0589b4fb43561f801c4faba8c1b89f8680
1
2
3
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 += ( d > 0.1  ? 2.0 : 3.0 );
17   *fp += ( f > 0.1  ? 20.0 : 21.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