Debian Codegraph @

clang/test/CIR/CodeGen/lang-c-cpp.cpp

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