We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a04b37 commit f11b730Copy full SHA for f11b730
clang/test/CIR/CodeGen/lang-c-cpp.cpp
@@ -0,0 +1,11 @@
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
+}
clang/test/CIR/CodeGen/lang-c.c
clang/test/CIR/CodeGen/lang-cpp.cpp
0 commit comments