1RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t.foo 2 3RUN: %lldb -x -b %t.foo bar baz quux | FileCheck %s 4RUN: %lldb -x -b -- %t.foo bar baz quux | FileCheck %s 5RUN: %lldb -x -b %t.foo -- bar baz quux | FileCheck %s 6RUN: %lldb -x -b %t.foo bar -- baz quux | FileCheck %s 7RUN: %lldb -x -b %t.foo bar baz -- quux | FileCheck %s 8RUN: %lldb %t.foo -x bar -b baz -- quux | FileCheck %s 9RUN: %lldb -x -b -f %t.foo bar baz quux | FileCheck %s 10RUN: %lldb -x -b -f %t.foo -- bar baz quux | FileCheck %s 11RUN: %lldb -x -b -f %t.foo bar -- baz quux | FileCheck %s 12RUN: %lldb -x -b -f %t.foo bar baz -- quux | FileCheck %s 13 14CHECK: Current executable set to {{.*}}foo 15CHECK: target.run-args "bar" "baz" "quux" 16 17RUN: %lldb -x -b %t.foo -- bar -baz --quux | FileCheck %s --check-prefix DASH 18RUN: %lldb -x -b -- %t.foo bar -baz --quux | FileCheck %s --check-prefix DASH 19RUN: %lldb -x -b -f %t.foo -- bar -baz --quux | FileCheck %s --check-prefix DASH 20 21DASH: Current executable set to {{.*}}foo 22DASH: target.run-args "bar" "-baz" "--quux" 23 24RUN: not %lldb -x -b %t.foo bar -baz --quux 2>&1 | FileCheck %s --check-prefix UNKNOWN 25RUN: not %lldb -x -b -f %t.foo bar -baz --quux 2>&1 | FileCheck %s --check-prefix UNKNOWN 26 27UNKNOWN: error: unknown option: -baz 28UNKNOWN: error: unknown option: --quux 29UNKNOWN: Use 'lldb{{.*}} --help' for a complete list of options. 30