Skip to content

Commit a38e695

Browse files
committed
git add test
1 parent 3c7487b commit a38e695

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// RUN: mlir-opt %s --convert-func-to-llvm --split-input-file | FileCheck %s
2+
3+
// CHECK: @create_clashes_on_conversion(!llvm.struct<"foo", (index)>)
4+
func.func private @clashing_struct_name(!llvm.struct<"_Converted.foo", (f32)>)
5+
func.func private @create_clashes_on_conversion(!llvm.struct<"foo", (index)>)
6+
7+
// -----
8+
9+
// CHECK: @merge_on_conversion(!llvm.struct<"_Converted.foo", (i64)>) attributes {sym_visibility = "private"}
10+
func.func private @clashing_struct_name(!llvm.struct<"_Converted.foo", (i64)>)
11+
func.func private @merge_on_conversion(!llvm.struct<"foo", (index)>)
12+
13+
// -----
14+
15+
// CHECK: @create_clashes_on_conversion_recursive(!llvm.struct<"foo", (!llvm.struct<"foo">, index)>)
16+
func.func private @clashing_struct_name(!llvm.struct<"_Converted.foo", (struct<"_Converted.foo">, f32)>)
17+
func.func private @create_clashes_on_conversion_recursive(!llvm.struct<"foo", (struct<"foo">, index)>)
18+
19+
// -----
20+
21+
// CHECK: @merge_on_conversion_recursive(!llvm.struct<"_Converted.foo", (struct<"_Converted.foo">, i64)>)
22+
func.func private @clashing_struct_name(!llvm.struct<"_Converted.foo", (struct<"_Converted.foo">, i64)>)
23+
func.func private @merge_on_conversion_recursive(!llvm.struct<"foo", (struct<"foo">, index)>)

0 commit comments

Comments
 (0)