Skip to content

Commit f11b730

Browse files
committed
combine tests
1 parent 1a04b37 commit f11b730

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 8 deletions
This file was deleted.

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

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)