dawn-cmake/test/unittest/reader/spirv/SpvParserCFGTest_EmitBody_I...

30 lines
519 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
void main_1(thread uint* const tint_symbol_1) {
*(tint_symbol_1) = 0u;
if (false) {
*(tint_symbol_1) = 1u;
if (true) {
*(tint_symbol_1) = 2u;
}
*(tint_symbol_1) = 3u;
} else {
*(tint_symbol_1) = 4u;
if (true) {
} else {
*(tint_symbol_1) = 5u;
}
*(tint_symbol_1) = 6u;
}
*(tint_symbol_1) = 999u;
return;
}
fragment void tint_symbol() {
thread uint tint_symbol_2 = 0u;
main_1(&(tint_symbol_2));
return;
}