1#include <stdio.h>
2
3struct foo
4{
5 int first;
6 int second;
7};
8
9int main ()
10{
11 struct foo mine = {.first: 0x001122AA, .second: 0x1122BB44};
12 printf(format: "main.first = 0x%8.8x, main.second = 0x%8.8x\n", mine.first, mine.second);
13 mine.first = 0xAABBCCDD; // Set break point at this line.
14 printf(format: "main.first = 0x%8.8x, main.second = 0x%8.8x\n", mine.first, mine.second);
15 mine.second = 0xFF00FF00;
16 printf(format: "main.first = 0x%8.8x, main.second = 0x%8.8x\n", mine.first, mine.second);
17 return 0;
18}
19
20

source code of lldb/test/API/functionalities/data-formatter/hexcaps/main.cpp