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 7178adb commit a8949ceCopy full SHA for a8949ce
tests/compiletests/ui/lang/u32/const_fold_div.rs
@@ -0,0 +1,10 @@
1
+// build-pass
2
+
3
+#![allow(unconditional_panic)]
4
5
+use spirv_std::spirv;
6
7
+#[spirv(fragment)]
8
+pub fn const_fold_div(out: &mut u32) {
9
+ *out = 7u32 / 0;
10
+}
0 commit comments