File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ // RUN: cir-link -sort-symbols -split-input-file %s | FileCheck %s
2+
3+ // CHECK: cir.func @f1() {
4+ // CHECK-NEXT: cir.return
5+ // CHECK-NEXT: }
6+
7+ // CHECK: cir.func @f2() {
8+ // CHECK-NEXT: cir.call @f1() : () -> ()
9+ // CHECK-NEXT: cir.return
10+ // CHECK-NEXT: }
11+
12+ module {
13+ cir.func private @f1()
14+
15+ cir.func @f2() {
16+ cir.call @f1() : () -> ()
17+ cir.return
18+ }
19+ }
20+
21+ // -----
22+
23+ module {
24+ cir.func @f1() {
25+ cir.return
26+ }
27+ }
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ list(APPEND CLANG_TEST_DEPS
8686
8787if (CLANG_ENABLE_CIR)
8888 list (APPEND CLANG_TEST_DEPS
89+ cir-link
8990 cir-opt
9091 cir-translate
9192 mlir-translate
Original file line number Diff line number Diff line change 8686tools = [
8787 "apinotes-test" ,
8888 "c-index-test" ,
89+ "cir-link" ,
8990 "cir-opt" ,
9091 "cir-translate" ,
9192 "clang-diff" ,
You can’t perform that action at this time.
0 commit comments