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