We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ef82d commit 515376bCopy full SHA for 515376b
clang/test/CIR/IR/invalid-vector-zero-size.cir
@@ -0,0 +1,10 @@
1
+// RUN: cir-opt %s -verify-diagnostics -split-input-file
2
+
3
+!s32i = !cir.int<s, 32>
4
5
+module {
6
7
+// expected-error @below {{the number of vector elements must be non-zero}}
8
+cir.global external @vec_a = #cir.zero : !cir.vector<0 x !s32i>
9
10
+}
clang/test/CIR/IR/invalid-vector.cir
+// expected-error @below {{expected LLVM-compatible fixed-vector type}}
+cir.global external @vec_b = #cir.zero : !cir.vector<4 x !cir.array<!s32i x 10>>
0 commit comments