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 d84cbb4 commit 3426b48Copy full SHA for 3426b48
flang/test/Fir/invalid-types.fir
@@ -104,6 +104,11 @@ func.func private @mem3() -> !fir.ref<>
104
105
// -----
106
107
+// expected-error@+1 {{expected non-function type}}
108
+func.func private @mem3() -> !fir.ref<, volatile>
109
+
110
+// -----
111
112
// expected-error@+1 {{expected ':'}}
113
func.func private @arr1() -> !fir.array<*>
114
@@ -164,5 +169,10 @@ func.func private @upe() -> !fir.box<!fir.class<none>>
164
169
165
170
166
171
172
+// expected-error@+1 {{invalid element type}}
173
+func.func private @upe() -> !fir.box<!fir.class<none>, volatile>
174
175
176
167
177
// expected-error@+1 {{invalid element type}}
168
178
func.func private @upe() -> !fir.class<!fir.box<i32>>
0 commit comments