diff --git a/llvm/test/tools/llvm-ar/double-hyphen.test b/llvm/test/tools/llvm-ar/double-hyphen.test new file mode 100644 --- /dev/null +++ b/llvm/test/tools/llvm-ar/double-hyphen.test @@ -0,0 +1,9 @@ +## Test the use of "--" on the commandline + +# RUN: echo contents > %t.txt + +# RUN: rm -f %t.ar +# RUN: llvm-ar rc -- %t.ar %t.txt 2>&1 | count 0 + +# RUN: llvm-ar p %t.ar | FileCheck %s +# CHECK: contents diff --git a/llvm/test/tools/llvm-ar/response.test b/llvm/test/tools/llvm-ar/response.test --- a/llvm/test/tools/llvm-ar/response.test +++ b/llvm/test/tools/llvm-ar/response.test @@ -17,6 +17,13 @@ # RUN: llvm-ar @%t.response3.txt %t.txt # RUN: llvm-ar p %t3.a | FileCheck %s --check-prefix=CONTENTS +## Newlines +# RUN: echo contents > %t.txt +# RUN: echo rc %t4.a > %t.newline.txt +# RUN: echo %t.txt >> %t.newline.txt +# RUN: llvm-ar @%t.newline.txt +# RUN: llvm-ar p %t4.a | FileCheck %s --check-prefix=CONTENTS + # CONTENTS: contents ## rsp-quoting diff --git a/llvm/test/tools/llvm-ar/symtab.test b/llvm/test/tools/llvm-ar/symtab.test --- a/llvm/test/tools/llvm-ar/symtab.test +++ b/llvm/test/tools/llvm-ar/symtab.test @@ -52,6 +52,12 @@ # RUN: llvm-nm --print-armap %t-to-no-symtab.a \ # RUN: | FileCheck %s --check-prefix=NO-SYMTAB +## Thin Archive: +# RUN: rm -f %t-thin.a +# RUN: llvm-ar rcT %t-thin.a %t.o +# RUN: llvm-nm --print-armap %t-thin.a \ +# RUN: | FileCheck %s --check-prefix=SYMTAB + # SYMTAB: symbol in # NO-SYMTAB-NOT: symbol in