--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can extract bytecode members
+;from GNU style archives
+;RUN: llvm-ar x %p/GNU.a very_long_bytecode_file_name.bc
+;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can extract bytecode members
+;from MacOSX style archives
+
+;RUN: llvm-ar x %p/MacOSX.a very_long_bytecode_file_name.bc
+;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can extract bytecode members
+;from SVR4 style archives
+
+;RUN: llvm-ar x %p/SVR4.a very_long_bytecode_file_name.bc
+;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can extract bytecode members
+;from xpg4 style archives
+
+;RUN: llvm-ar x %p/xpg4.a very_long_bytecode_file_name.bc
+;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can generate a symbol table for
+;GNU style archives
+;RUN: cp %p/GNU.a .
+;RUN: llvm-ranlib GNU.a
+;RUN: llvm-ar t GNU.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can generate a symbol table for
+;SVR4 style archives
+;RUN: cp %p/SVR4.a .
+;RUN: llvm-ranlib SVR4.a
+;RUN: llvm-ar t SVR4.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can generate a symbol table for
+;xpg4 style archives
+;RUN: cp %p/xpg4.a .
+;RUN: llvm-ranlib xpg4.a
+;RUN: llvm-ar t xpg4.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can generate a table of contents for
+;GNU style archives
+;RUN: llvm-ar t %p/GNU.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can generate a table of contents for
+;SVR4 style archives
+;RUN: llvm-ar t %p/SVR4.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
--- /dev/null
+;This isn't really an assembly file, its just here to run the test.
+;This test just makes sure that llvm-ar can generate a table of contents for
+;xpg4 style archives
+;RUN: llvm-ar t %p/xpg4.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o