Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / c-c++-common / fmax-errors.c
blob1ef78eb9eb8ff870bd0baf866a86340808f4df7a
1 /* PR c/44782 */
2 /* { dg-do compile } */
3 /* { dg-options "-fmax-errors=3" } */
5 void foo (unsigned int i, unsigned int j)
7 (i) (); /* { dg-error "" } */
8 (j) (); /* { dg-error "" } */
9 (i+j) (); /* { dg-error "" } */
10 (i*j) (); /* no error here due to -fmax-errors */
11 } /* { dg-prune-output "compilation terminated" } */