12bb16f94SJonas DevlieghereUNSUPPORTED: lldb-repro 22bb16f94SJonas Devlieghere 382093e8fSJonas DevlieghereRUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t.foo 482093e8fSJonas Devlieghere 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 -x -b %t.foo bar -- baz quux | FileCheck %s 982093e8fSJonas DevlieghereRUN: %lldb -x -b %t.foo bar baz -- quux | FileCheck %s 1082093e8fSJonas DevlieghereRUN: %lldb %t.foo -x bar -b 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 DevlieghereRUN: %lldb -x -b -f %t.foo bar -- baz quux | FileCheck %s 1482093e8fSJonas DevlieghereRUN: %lldb -x -b -f %t.foo bar baz -- quux | FileCheck %s 1582093e8fSJonas Devlieghere 1682093e8fSJonas DevlieghereCHECK: Current executable set to {{.*}}foo 1782093e8fSJonas DevlieghereCHECK: target.run-args "bar" "baz" "quux" 1882093e8fSJonas Devlieghere 1982093e8fSJonas DevlieghereRUN: %lldb -x -b %t.foo -- bar -baz --quux | FileCheck %s --check-prefix DASH 2082093e8fSJonas DevlieghereRUN: %lldb -x -b -- %t.foo bar -baz --quux | FileCheck %s --check-prefix DASH 2182093e8fSJonas DevlieghereRUN: %lldb -x -b -f %t.foo -- bar -baz --quux | FileCheck %s --check-prefix DASH 2282093e8fSJonas Devlieghere 2382093e8fSJonas DevlieghereDASH: Current executable set to {{.*}}foo 2482093e8fSJonas DevlieghereDASH: target.run-args "bar" "-baz" "--quux" 2582093e8fSJonas Devlieghere 265b5b81bcSJonas DevlieghereRUN: not %lldb -x -b %t.foo bar -baz --quux 2>&1 | FileCheck %s --check-prefix UNKNOWN 275b5b81bcSJonas DevlieghereRUN: not %lldb -x -b -f %t.foo bar -baz --quux 2>&1 | FileCheck %s --check-prefix UNKNOWN 2882093e8fSJonas Devlieghere 295b5b81bcSJonas DevlieghereUNKNOWN: error: unknown option: -baz 305b5b81bcSJonas DevlieghereUNKNOWN: error: unknown option: --quux 31*8723f841SJonas DevlieghereUNKNOWN: Use 'lldb{{.*}} --help' for a complete list of options. 32