;; Tests that two forwarded types whose declarations are intertwined match | |
;; correctly | |
OpCapability Kernel | |
OpCapability Addresses | |
OpCapability Linkage | |
OpMemoryModel Logical OpenCL | |
OpName %Aptr "Aptr" | |
OpName %Bptr "Bptr" | |
OpTypeForwardPointer %Aptr UniformConstant | |
OpTypeForwardPointer %Bptr UniformConstant | |
%uint = OpTypeInt 32 0 | |
%A = OpTypeStruct %Aptr %uint %Bptr | |
%B = OpTypeStruct %uint %Aptr %Bptr | |
%Aptr = OpTypePointer UniformConstant %A | |
%Bptr = OpTypePointer UniformConstant %B |