Ted Kremenek | 52198c2 | 2010-07-27 23:06:03 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-pth -o %t %S/pth.h |
Rafael Espindola | 96e7813 | 2013-07-04 16:16:58 +0000 | [diff] [blame] | 2 | // RUN: not %clang_cc1 -triple i386-unknown-unknown -include-pth %t -fsyntax-only %s 2>&1 | FileCheck %s |
Ted Kremenek | 52198c2 | 2010-07-27 23:06:03 +0000 | [diff] [blame] | 3 | |
| 4 | #error This is the only diagnostic |
| 5 | |
| 6 | // CHECK: This is the only diagnostic |
Rafael Espindola | 96e7813 | 2013-07-04 16:16:58 +0000 | [diff] [blame] | 7 | // CHECK: 1 error generated. |