blob: 1b6ebcd6ebd20bd111c63b443a9649eeeceee59b [file] [log] [blame]
Antonio Maiorano08d92792024-01-11 20:51:50 +00001#include <metal_stdlib>
2
3using namespace metal;
4struct S {
5 int x;
6};
7
8void deref() {
9 S a = {};
10 int b = a.x;
11 a.x = 42;
12}
13
14void no_deref() {
15 S a = {};
16 int b = a.x;
17 a.x = 42;
18}
19
20kernel void tint_symbol() {
21 deref();
22 no_deref();
23 return;
24}
25