cec2081
#!/bin/bash
cec2081
cec2081
set -ex
cec2081
cec2081
g++ -g test.cpp
cec2081
cec2081
test `lldb -b -o 'breakpoint set --file test.cpp --line 7' -o run -o 'p v' -- a.out \
cec2081
  | grep \
cec2081
    -e '(std::vector<int, std::allocator<int> >) $0 = size=1 {' \
cec2081
    -e '\[0\] = 2' \
cec2081
  | wc -l` -eq 2