1 // RUN: %clang_cc1 -triple loongarch64 -target-feature +f -target-feature +d -target-abi lp64d -emit-llvm %s -o - | \
2 // RUN: FileCheck --check-prefix=CHECK-C %s
3 // RUN: %clang_cc1 -triple loongarch64 -target-feature +f -target-feature +d -target-abi lp64d -emit-llvm %s -o - -x c++ | \
4 // RUN: FileCheck --check-prefix=CHECK-CXX %s
8 // CHECK-C: define{{.*}} void @test1()
9 // CHECK-CXX: define{{.*}} i64 @_Z5test12u1(i64{{[^,]*}})
11 union u1
test1(union u1 a
) {
21 // CHECK-C: define{{.*}} { i32, float } @test2(i32{{[^,]*}}, float{{[^,]*}})
22 // CHECK-CXX: define{{.*}} [2 x i64] @_Z5test22s1([2 x i64]{{[^,]*}})
23 struct s1
test2(struct s1 a
) {