xref: /llvm-project/lldb/test/API/commands/frame/var-scope/main.c (revision fdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc)

foo(int x,int y)1 int 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 
main(int argc,char const * argv[])9 int main (int argc, char const *argv[])
10 {
11     return foo(-3,0);  //% self.expect("frame variable -s argc argv", substrs=['ARG: (int) argc ='])
12 }
13