1 ; RUN: %if spirv-tools %{ spirv-as %s -o - | spirv-val - %}
2 ; RUN: spirv-sim --function=simple --wave=1 --expects=2 -i %s
4 OpMemoryModel Logical GLSL450
5 OpEntryPoint GLCompute %main "main"
6 OpExecutionMode %main LocalSize 1 1 1
8 OpName %simple "simple"
11 %int_2 = OpConstant %int 2
13 %main_type = OpTypeFunction %void
14 %simple_type = OpTypeFunction %int
15 %main = OpFunction %void None %main_type
19 %simple = OpFunction %int None %simple_type