brintos

brintos / llvm-project-archived public Read only

0
0
Text · 490 B · 8931783 Raw
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