rui314 / 8cc

A Small C Compiler
MIT License
6.13k stars 740 forks source link

Miscompilation bug #57

Open andrewchambers opened 9 years ago

andrewchambers commented 9 years ago

Works with gcc/tcc, aborts on 8cc at runtime.

void abort(void);
void exit(int);
double x = 0x1.fp1;
int main() {
  if (x != 3.875)
    abort();
  return 0;
}