glslang/Test/spv.atomicRvalue.error.vert
Nathaniel Cesario efc33d1ee5 Fix segfault with atomic arg check
Makes sure that we have an l-value before checking the storage type of
the mem argument passed to an atomic memory operation.

Fixes #3332.
2023-09-15 17:43:04 -04:00

8 lines
92 B
GLSL

#version 440
void main() {
uint a = 5;
atomicAdd(a * 2, 0);
atomicAdd(a, 0);
}