182093e8fSJonas DevlieghereRUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t.foo 282093e8fSJonas Devlieghere 382093e8fSJonas DevlieghereRUN: %lldb -x -b %t.foo bar baz quux | FileCheck %s 482093e8fSJonas DevlieghereRUN: %lldb -x -b -- %t.foo bar baz quux | FileCheck %s 582093e8fSJonas DevlieghereRUN: %lldb -x -b %t.foo -- bar baz quux | FileCheck %s 682093e8fSJonas DevlieghereRUN: %lldb -x -b %t.foo bar -- baz quux | FileCheck %s 782093e8fSJonas DevlieghereRUN: %lldb -x -b %t.foo bar baz -- quux | FileCheck %s 882093e8fSJonas DevlieghereRUN: %lldb %t.foo -x bar -b baz -- quux | FileCheck %s 982093e8fSJonas DevlieghereRUN: %lldb -x -b -f %t.foo bar baz quux | FileCheck %s 1082093e8fSJonas DevlieghereRUN: %lldb -x -b -f %t.foo -- bar baz quux | FileCheck %s 1182093e8fSJonas DevlieghereRUN: %lldb -x -b -f %t.foo bar -- baz quux | FileCheck %s 1282093e8fSJonas DevlieghereRUN: %lldb -x -b -f %t.foo bar baz -- quux | FileCheck %s 1382093e8fSJonas Devlieghere 1482093e8fSJonas DevlieghereCHECK: Current executable set to {{.*}}foo 1582093e8fSJonas DevlieghereCHECK: target.run-args "bar" "baz" "quux" 1682093e8fSJonas Devlieghere 1782093e8fSJonas DevlieghereRUN: %lldb -x -b %t.foo -- bar -baz --quux | FileCheck %s --check-prefix DASH 1882093e8fSJonas DevlieghereRUN: %lldb -x -b -- %t.foo bar -baz --quux | FileCheck %s --check-prefix DASH 1982093e8fSJonas DevlieghereRUN: %lldb -x -b -f %t.foo -- bar -baz --quux | FileCheck %s --check-prefix DASH 2082093e8fSJonas Devlieghere 2182093e8fSJonas DevlieghereDASH: Current executable set to {{.*}}foo 2282093e8fSJonas DevlieghereDASH: target.run-args "bar" "-baz" "--quux" 2382093e8fSJonas Devlieghere 245b5b81bcSJonas DevlieghereRUN: not %lldb -x -b %t.foo bar -baz --quux 2>&1 | FileCheck %s --check-prefix UNKNOWN 255b5b81bcSJonas DevlieghereRUN: not %lldb -x -b -f %t.foo bar -baz --quux 2>&1 | FileCheck %s --check-prefix UNKNOWN 2682093e8fSJonas Devlieghere 275b5b81bcSJonas DevlieghereUNKNOWN: error: unknown option: -baz 285b5b81bcSJonas DevlieghereUNKNOWN: error: unknown option: --quux 29*8723f841SJonas DevlieghereUNKNOWN: Use 'lldb{{.*}} --help' for a complete list of options. 30