13 lines · c
1// Test that using -emit-cir when clang is not built with CIR support gives a proper error message2// instead of crashing.3 4// This test should only run when CIR support is NOT enabled5// UNSUPPORTED: cir-support6 7// RUN: not %clang_cc1 -emit-cir %s 2>&1 | FileCheck %s8// CHECK: error: clang IR support not available, rebuild clang with -DCLANG_ENABLE_CIR=ON9 10int main(void) {11 return 0;12}13