aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Frontend/cir-not-built.c
blob: 57fbd280c6a452069320a0cf05ed9cd50e75e50a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that using -emit-cir when clang is not built with CIR support gives a proper error message
// instead of crashing.

// This test should only run when CIR support is NOT enabled
// UNSUPPORTED: cir-support

// RUN: not %clang_cc1 -emit-cir %s 2>&1 | FileCheck %s
// CHECK: error: clang IR support not available, rebuild clang with -DCLANG_ENABLE_CIR=ON

int main(void) {
  return 0;
}