1 ; RUN: %if spirv-tools %{ spirv-as %s -o - | spirv-val - %}
2 ; RUN: not spirv-sim --function=simple --wave=1 --expects=1 -i %s 2>&1 | FileCheck %s
4 ; CHECK: Expected != Observed
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %main "main"
9 OpExecutionMode %main LocalSize 1 1 1
11 OpName %simple "simple"
14 %int_2 = OpConstant %int 2
16 %main_type = OpTypeFunction %void
17 %simple_type = OpTypeFunction %int
18 %main = OpFunction %void None %main_type
22 %simple = OpFunction %int None %simple_type