1int foo(int x, int y) {
2 int z = 3 + x;
3 return z + y; //% self.expect("frame variable -s", substrs=['ARG: (int) x = -3','ARG: (int) y = 0'])
4 //% self.expect("frame variable -s x", substrs=['ARG: (int) x = -3'])
5 //% self.expect("frame variable -s y", substrs=['ARG: (int) y = 0'])
6 //% self.expect("frame variable -s z", substrs=['LOCAL: (int) z = 0'])
7}
8
9int main (int argc, char const *argv[])
10{
11 return foo(x: -3,y: 0); //% self.expect("frame variable -s argc argv", substrs=['ARG: (int) argc ='])
12}
13

source code of lldb/test/API/commands/frame/var-scope/main.c