Ted Kremenek | 13eee19 | 2011-12-07 02:08:00 +0000 | [diff] [blame] | 1 | #error foo |
| 2 | #error bar |
| 3 | |
| 4 | // RUN: rm -f %t |
Richard Smith | 9867eba | 2012-12-05 22:33:14 +0000 | [diff] [blame] | 5 | // RUN: not %clang -ferror-limit=1 -fsyntax-only %s --serialize-diagnostics %t > /dev/null 2>&1 |
Ted Kremenek | 13eee19 | 2011-12-07 02:08:00 +0000 | [diff] [blame] | 6 | // RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s |
| 7 | |
| 8 | // This test case tests that we can handle both fatal errors and errors without categories. |
| 9 | |
Ted Kremenek | 34a2c42 | 2012-02-02 00:16:13 +0000 | [diff] [blame] | 10 | // CHECK: {{.*[/\\]}}serialized-diags-no-category.c:1:2: error: foo [] |
Ted Kremenek | 13eee19 | 2011-12-07 02:08:00 +0000 | [diff] [blame] | 11 | // CHECK: Number of diagnostics: 2 |
| 12 | |