8cc icon indicating copy to clipboard operation
8cc copied to clipboard

Miscompilation bug

Open andrewchambers opened this issue 10 years ago • 0 comments

Following code aborts with 8cc at runtime, works with gcc 4.9.2 and tcc 0.9.26.

void abort(void);
int a[] = L"foo";
int b = 0;
int main() {
  if (a[2] != L'o' || b)
    abort();
  return 0;
}

andrewchambers avatar Mar 24 '15 20:03 andrewchambers