1# REQUIRES: native && dbregs-set 2# UNSUPPORTED: system-darwin 3# UNSUPPORTED: system-windows 4# RUN: %clangxx_host -g %p/Inputs/fork.cpp -DTEST_FORK=fork -o %t 5# RUN: %lldb -b -s %s %t | FileCheck %s 6settings set target.process.follow-fork-mode child 7process launch -s 8watchpoint set variable -w write g_val 9# CHECK: Watchpoint created: 10continue 11# CHECK: stop reason = watchpoint 12continue 13# CHECK: stop reason = watchpoint 14continue 15# CHECK: child exited: 0 16