blob: 797a73531defc788bf0c65e4b872eaa499188c40 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S1 {
int i;
};
struct S2 {
S1 s1;
};
struct S3 {
S2 s2;
};
int f(S3 s3) {
return s3.s2.s1.i;
}
kernel void tint_symbol(device int* tint_symbol_2 [[buffer(0)]]) {
S3 const tint_symbol_1 = S3{.s2=S2{.s1=S1{.i=42}}};
*(tint_symbol_2) = f(tint_symbol_1);
return;
}