llvm.org GIT mirror llvm / 6b82fbd
Adding extra test info for llvm-mt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308252 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Beckmann 2 years ago
2 changed file(s) with 4 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
0 RUN: not llvm-mt /hello /nonsense
1
2 RUN: llvm-mt /? | FileCheck %s -check-prefix=HELP
13
24 RUN: llvm-mt /inputresource:foo.res /manifest foo.manifest | FileCheck %s -check-prefix=NOT_SUPPORTED
6666 exit(1);
6767 }
6868
69 int main(int argc, const char **argv) {
69 int main(int argc, const char *argv[]) {
7070 errs() << "very start\n";
7171 for (int i = 0; i < argc; i++ ) {
7272 errs() << argv[i] << "\n";
7373 }
7474
75 sys::PrintStackTraceOnErrorSignal(argv[0]);
76 PrettyStackTraceProgram X(argc, argv);
77
78 ExitOnErr.setBanner("llvm-mt: ");
79
80 SmallVector argv_buf;
81 SpecificBumpPtrAllocator ArgAllocator;
82 ExitOnErr(errorCodeToError(sys::Process::GetArgumentVector(
83 argv_buf, makeArrayRef(argv, argc), ArgAllocator)));
84
85 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
86
8775 CvtResOptTable T;
8876 unsigned MAI, MAC;
89 ArrayRef ArgsArr = makeArrayRef(argv, argc);
77 ArrayRef ArgsArr = makeArrayRef(argv + 1, argc);
9078 opt::InputArgList InputArgs = T.ParseArgs(ArgsArr, MAI, MAC);
9179
9280 errs() << "after\n";