1#include <stdio.h>
2
3inline void test1(int) __attribute__ ((always_inline));
4inline void test2(int) __attribute__ ((always_inline));
5
6void test2(int b) {
7 printf(format: "test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"])
8 {
9 int c = b * 2;
10 printf(format: "c=%d\n", c); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"])
11 //% self.expect("expression c", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["84"])
12 }
13}
14
15void test1(int a) {
16 printf(format: "test1(%d)\n", a);
17 test2(b: a+1);//% self.runCmd("step")
18 //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["24"])
19}
20
21int main() {
22 test2(b: 42);
23 test1(a: 23);
24 return 0;
25}
26

source code of lldb/test/API/lang/c/inlines/main.c