| 1 | #exe { |
| 2 | --name identifiers |
| 3 | -Mroot=identifiers.zig |
| 4 | #} |
| 5 | |
| 6 | #write identifiers.zig { |
| 7 | const Struct = struct { @"zwölf": u32 }; |
| 8 | fn testIdentifiers(@"fünf": u32, @"struct": Struct) void { |
| 9 | _ = @"fünf"; |
| 10 | _ = @"struct"; |
| 11 | } |
| 12 | pub fn main() void { |
| 13 | testIdentifiers(5, .{ .@"zwölf" = 12 }); |
| 14 | } |
| 15 | #} |
| 16 | #update |
| 17 | #check lldb { |
| 18 | (lldb) breakpoint set --file identifiers.zig --source-pattern-regexp '_ = @"struct";' |
| 19 | Breakpoint 1: where = identifiers`identifiers.testIdentifiers + #... at identifiers.zig:5:1, address = 0x#... |
| 20 | (lldb) process launch |
| 21 | Process #... launched: '#.../identifiers' (#...) |
| 22 | Process #... stopped |
| 23 | * thread #1, name = 'identifiers', stop reason = breakpoint 1.1 |
| 24 | frame #0: identifiers`identifiers.testIdentifiers(fünf=5, struct=(.@"zw\xc3\xb6lf" = 12)) at identifiers.zig:5:1 |
| 25 | (lldb) frame variable --show-all-children --show-types -- @\"fünf'"' '@"f\xC3\xBCnf"' '@"f\u{FC}nf"' '@"struct".@"zwölf"' '@"struct".@"zw\xC3\xB6lf"' '@"struct".@"zw\u{F6}lf"' |
| 26 | (u32) @"fünf" = 5 |
| 27 | (u32) @"f\xC3\xBCnf" = 5 |
| 28 | (u32) @"f\u{FC}nf" = 5 |
| 29 | (u32) @"struct".@"zwölf" = 12 |
| 30 | (u32) @"struct".@"zw\xC3\xB6lf" = 12 |
| 31 | (u32) @"struct".@"zw\u{F6}lf" = 12 |
| 32 | (lldb) breakpoint delete --force 1 |
| 33 | 1 breakpoints deleted; 0 breakpoint locations disabled. |
| 34 | #} |