12 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cpp.cir2// RUN: FileCheck --check-prefix=CIR-CPP --input-file=%t.cpp.cir %s3// RUN: %clang_cc1 -x c -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.c.cir4// RUN: FileCheck --check-prefix=CIR-C --input-file=%t.c.cir %s5 6// CIR-CPP: module{{.*}} attributes {{{.*}}cir.lang = #cir.lang<cxx>{{.*}}}7// CIR-C: module{{.*}} attributes {{{.*}}cir.lang = #cir.lang<c>{{.*}}}8 9int main() {10 return 0;11}12