Skip to content

Commit aa60e6f

Browse files
committed
Merge invalid complex test into one file
1 parent 9d6d5a8 commit aa60e6f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

clang/test/CIR/IR/invalid-const-complex-wrong-real-type.cir renamed to clang/test/CIR/IR/invalid-complex.cir

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ module {
99
cir.global external @ci2 = #cir.const_complex<#cir.int<1> : !s64i, #cir.int<2> : !s32i> : !cir.complex<!s32i>
1010

1111
}
12+
13+
// -----
14+
15+
!s32i = !cir.int<s, 32>
16+
!s64i = !cir.int<s, 64>
17+
18+
module {
19+
20+
// expected-error @below {{type of the imaginary part does not match the complex type}}
21+
cir.global external @ci2 = #cir.const_complex<#cir.int<1> : !s32i, #cir.int<2> : !s64i> : !cir.complex<!s32i>
22+
23+
}

0 commit comments

Comments
 (0)