blob: 8178ee51fac80a9852222445add31f5075ad2c29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
comptime {
@branchHint(.cold);
}
comptime {
@src();
}
comptime {
@returnAddress();
}
comptime {
@frameAddress();
}
comptime {
@breakpoint();
}
comptime {
@cVaArg(1, 2);
}
comptime {
@cVaCopy(1);
}
comptime {
@cVaEnd(1);
}
comptime {
@cVaStart();
}
comptime {
@workItemId(42);
}
comptime {
@workGroupSize(42);
}
comptime {
@workGroupId(42);
}
// error
// backend=stage2
// target=native
//
// :2:5: error: '@branchHint' outside function scope
// :6:5: error: '@src' outside function scope
// :10:5: error: '@returnAddress' outside function scope
// :14:5: error: '@frameAddress' outside function scope
// :18:5: error: '@breakpoint' outside function scope
// :22:5: error: '@cVaArg' outside function scope
// :26:5: error: '@cVaCopy' outside function scope
// :30:5: error: '@cVaEnd' outside function scope
// :34:5: error: '@cVaStart' outside function scope
// :38:5: error: '@workItemId' outside function scope
// :42:5: error: '@workGroupSize' outside function scope
// :46:5: error: '@workGroupId' outside function scope
|