/* Minimal compiler test for C compiler.

 Semantic mistakes like these are common enough that any compiler MUST produce warnings
like those in the comments if it is to be used for more than "hello, world".

*/

#include <stdlib.h> // for exit()
#include <stdio.h>

int
main (void)
{
  double d;
  char c[]="1234.5678";
  sscanf(c, "%f", &d); // warning: float format, double arg (arg 3)
  sscanf(c, "%lf", d); // warning: format argument is not a pointer (arg 3) 
  exit ((int)d);
}
