1# REQUIRES: native && (system-linux || system-netbsd) && dbregs-set
2# clone() tests fails on arm64 Linux, PR #49899
3# UNSUPPORTED: system-linux && target-aarch64
4# RUN: %clangxx_host -g %p/Inputs/fork.cpp -DTEST_CLONE -o %t
5# RUN: %lldb -b -s %s %t | FileCheck %s
6process launch -s
7watchpoint set variable -w write g_val
8# CHECK: Watchpoint created:
9continue
10# CHECK-NOT: function run in parent
11# CHECK: stop reason = watchpoint
12continue
13# CHECK: function run in parent
14# CHECK: function run in exec'd child
15