1#
2# Check if the index is appearing properly in the output file
3#
4RUN: llvm-nm -M %p/Inputs/liblong_filenames.a | FileCheck -check-prefix=CHECKIDX %s
5
6CHECKIDX: Archive map
7CHECKIDX: abcdefghijklmnopqrstuvwxyz12345678 in 1.o
8CHECKIDX: main in 1.o
9CHECKIDX: fn1 in 2.o
10CHECKIDX: fn3 in 3.o
11CHECKIDX: fn1 in 3.o
12CHECKIDX: shankar in 4.o
13CHECKIDX: a in 5.o
14CHECKIDX: b in 6.o
15CHECKIDX: a in abcdefghijklmnopqrstuvwxyz1.o
16CHECKIDX: b in abcdefghijklmnopqrstuvwxyz2.o
17CHECKIDX: bda in abcdefghijklmnopqrstuvwxyz2.o
18CHECKIDX: b in abcdefghijklmnopq.o
19CHECKIDX: 1.o:
20CHECKIDX: 0000000000000000 D abcdefghijklmnopqrstuvwxyz12345678
21CHECKIDX:                  U bda
22CHECKIDX: 0000000000000000 T main
23CHECKIDX: 2.o:
24CHECKIDX: 0000000000000000 T fn1
25CHECKIDX: 3.o:
26CHECKIDX: 000000000000000b T fn1
27CHECKIDX: 0000000000000000 T fn3
28CHECKIDX: 4.o:
29CHECKIDX:                  C shankar
30CHECKIDX: 5.o:
31CHECKIDX:                  C a
32CHECKIDX: 6.o:
33CHECKIDX:                  C b
34CHECKIDX: abcdefghijklmnopqrstuvwxyz1.o:
35CHECKIDX:                  C a
36CHECKIDX: abcdefghijklmnopqrstuvwxyz2.o:
37CHECKIDX:                  C b
38CHECKIDX: 0000000000000000 T bda
39CHECKIDX: abcdefghijklmnopq.o:
40CHECKIDX:                  C b
41