clang/test/Frontend/cir-not-built.c
raw| 1 | // Test that using -emit-cir when clang is not built with CIR support gives a proper error message |
| 2 | // instead of crashing. |
| 3 | |
| 4 | // This test should only run when CIR support is NOT enabled |
| 5 | // UNSUPPORTED: cir-support |
| 6 | |
| 7 | // RUN: not %clang_cc1 -emit-cir %s 2>&1 | FileCheck %s |
| 8 | // CHECK: error: clang IR support not available, rebuild clang with -DCLANG_ENABLE_CIR=ON |
| 9 | |
| 10 | int main(void) { |
| 11 | return 0; |
| 12 | } |