1#
2# Check if the index is appearing properly in the output file
3#
4RUN: llvm-nm -a --numeric-sort -M %p/Inputs/coff_archive.lib | FileCheck -check-prefix=CHECKIDX %s
5
6CHECKIDX: Archive map
7CHECKIDX: ??0invalid_argument@std@@QAE@PBD@Z in Debug\mymath.obj
8CHECKIDX: ??0logic_error@std@@QAE@PBD@Z in Debug\mymath.obj
9CHECKIDX: ??1invalid_argument@std@@UAE@XZ in Debug\mymath.obj
10CHECKIDX: ??1logic_error@std@@UAE@XZ in Debug\mymath.obj
11CHECKIDX: ??_7invalid_argument@std@@6B@ in Debug\mymath.obj
12CHECKIDX: ??_7logic_error@std@@6B@ in Debug\mymath.obj
13CHECKIDX: ??_C@_0BC@IHENMCGI@b?5cannot?5be?5zero?$CB?$AA@ in Debug\mymath.obj
14CHECKIDX: ??_Ginvalid_argument@std@@UAEPAXI@Z in Debug\mymath.obj
15CHECKIDX: ??_Glogic_error@std@@UAEPAXI@Z in Debug\mymath.obj
16CHECKIDX: ??_R0?AVexception@std@@@8 in Debug\mymath.obj
17CHECKIDX: ??_R0?AVinvalid_argument@std@@@8 in Debug\mymath.obj
18CHECKIDX: ??_R0?AVlogic_error@std@@@8 in Debug\mymath.obj
19CHECKIDX: ??_R0PAVexception@std@@@8 in Debug\mymath.obj
20CHECKIDX: ??_R0PAVinvalid_argument@std@@@8 in Debug\mymath.obj
21CHECKIDX: ??_R0PAVlogic_error@std@@@8 in Debug\mymath.obj
22CHECKIDX: ??_R0PAX@8 in Debug\mymath.obj
23CHECKIDX: ??_R1A@?0A@EA@exception@std@@8 in Debug\mymath.obj
24CHECKIDX: ??_R1A@?0A@EA@invalid_argument@std@@8 in Debug\mymath.obj
25CHECKIDX: ??_R1A@?0A@EA@logic_error@std@@8 in Debug\mymath.obj
26CHECKIDX: ??_R2exception@std@@8 in Debug\mymath.obj
27CHECKIDX: ??_R2invalid_argument@std@@8 in Debug\mymath.obj
28CHECKIDX: ??_R2logic_error@std@@8 in Debug\mymath.obj
29CHECKIDX: ??_R3exception@std@@8 in Debug\mymath.obj
30CHECKIDX: ??_R3invalid_argument@std@@8 in Debug\mymath.obj
31CHECKIDX: ??_R3logic_error@std@@8 in Debug\mymath.obj
32CHECKIDX: ??_R4invalid_argument@std@@6B@ in Debug\mymath.obj
33CHECKIDX: ??_R4logic_error@std@@6B@ in Debug\mymath.obj
34CHECKIDX: ?Add@MyMathFuncs@MathFuncs@@SANNN@Z in Debug\mymath.obj
35CHECKIDX: ?Divide@MyMathFuncs@MathFuncs@@SANNN@Z in Debug\mymath.obj
36CHECKIDX: ?Multiply@MyMathFuncs@MathFuncs@@SANNN@Z in Debug\mymath.obj
37CHECKIDX: ?Subtract@MyMathFuncs@MathFuncs@@SANNN@Z in Debug\mymath.obj
38CHECKIDX: ?_Rank@?$_Arithmetic_traits@C@std@@2HB in Debug\mymath.obj
39CHECKIDX: ?_Rank@?$_Arithmetic_traits@D@std@@2HB in Debug\mymath.obj
40CHECKIDX: ?_Rank@?$_Arithmetic_traits@E@std@@2HB in Debug\mymath.obj
41CHECKIDX: ?_Rank@?$_Arithmetic_traits@F@std@@2HB in Debug\mymath.obj
42CHECKIDX: ?_Rank@?$_Arithmetic_traits@G@std@@2HB in Debug\mymath.obj
43CHECKIDX: ?_Rank@?$_Arithmetic_traits@H@std@@2HB in Debug\mymath.obj
44CHECKIDX: ?_Rank@?$_Arithmetic_traits@I@std@@2HB in Debug\mymath.obj
45CHECKIDX: ?_Rank@?$_Arithmetic_traits@J@std@@2HB in Debug\mymath.obj
46CHECKIDX: ?_Rank@?$_Arithmetic_traits@K@std@@2HB in Debug\mymath.obj
47CHECKIDX: ?_Rank@?$_Arithmetic_traits@M@std@@2HB in Debug\mymath.obj
48CHECKIDX: ?_Rank@?$_Arithmetic_traits@N@std@@2HB in Debug\mymath.obj
49CHECKIDX: ?_Rank@?$_Arithmetic_traits@O@std@@2HB in Debug\mymath.obj
50CHECKIDX: ?_Rank@?$_Arithmetic_traits@_J@std@@2HB in Debug\mymath.obj
51CHECKIDX: ?_Rank@?$_Arithmetic_traits@_K@std@@2HB in Debug\mymath.obj
52CHECKIDX: ?_Rank@?$_Arithmetic_traits@_N@std@@2HB in Debug\mymath.obj
53CHECKIDX: ?value@?$integral_constant@I$0A@@tr1@std@@2IB in Debug\mymath.obj
54CHECKIDX: ?value@?$integral_constant@_N$00@tr1@std@@2_NB in Debug\mymath.obj
55CHECKIDX: ?value@?$integral_constant@_N$0A@@tr1@std@@2_NB in Debug\mymath.obj
56CHECKIDX: __CT??_R0PAVexception@std@@@84 in Debug\mymath.obj
57CHECKIDX: __CT??_R0PAVinvalid_argument@std@@@84 in Debug\mymath.obj
58CHECKIDX: __CT??_R0PAVlogic_error@std@@@84 in Debug\mymath.obj
59CHECKIDX: __CT??_R0PAX@84 in Debug\mymath.obj
60CHECKIDX: __CTA4PAVinvalid_argument@std@@ in Debug\mymath.obj
61CHECKIDX: __TI4PAVinvalid_argument@std@@ in Debug\mymath.obj
62CHECKIDX: __real@0000000000000000 in Debug\mymath.obj
63CHECKIDX: Debug\stdafx.obj:
64CHECKIDX: 00000000 N .debug$S
65CHECKIDX: 00000000 N .debug$T
66CHECKIDX: 00000000 i .drectve
67CHECKIDX: 00000001 a @feat.00
68CHECKIDX: 00ab9d1b a @comp.id
69
70CHECKIDX: Debug\mymath.obj:
71CHECKIDX:          U ??2@YAPAXI@Z
72CHECKIDX:          U ??3@YAXPAX@Z
73CHECKIDX:          U ??_7type_info@@6B@
74CHECKIDX:          w ??_Einvalid_argument@std@@UAEPAXI@Z
75CHECKIDX:          w ??_Elogic_error@std@@UAEPAXI@Z
76CHECKIDX:          U ??_Ginvalid_argument@std@@UAEPAXI@Z
77CHECKIDX:          U ??_Glogic_error@std@@UAEPAXI@Z
78CHECKIDX:          U ?what@exception@std@@UBEPBDXZ
79CHECKIDX:          U @__security_check_cookie@4
80CHECKIDX:          U __CxxThrowException@8
81CHECKIDX:          U __RTC_CheckEsp
82CHECKIDX:          U __RTC_InitBase
83CHECKIDX:          U __RTC_Shutdown
84CHECKIDX:          U ___CxxFrameHandler3
85CHECKIDX:          U ___security_cookie
86CHECKIDX:          U __fltused
87CHECKIDX:          U __imp_??0exception@std@@QAE@ABQBD@Z
88CHECKIDX:          U __imp_??1exception@std@@UAE@XZ
89CHECKIDX: 00000000 d .data
90CHECKIDX: 00000000 d .data
91CHECKIDX: 00000000 d .data
92CHECKIDX: 00000000 d .data
93CHECKIDX: 00000000 d .data
94CHECKIDX: 00000000 d .data
95CHECKIDX: 00000000 d .data
96CHECKIDX: 00000000 N .debug$S
97CHECKIDX: 00000000 N .debug$S
98CHECKIDX: 00000000 N .debug$S
99CHECKIDX: 00000000 N .debug$S
100CHECKIDX: 00000000 N .debug$S
101CHECKIDX: 00000000 N .debug$S
102CHECKIDX: 00000000 N .debug$S
103CHECKIDX: 00000000 N .debug$S
104CHECKIDX: 00000000 N .debug$S
105CHECKIDX: 00000000 N .debug$S
106CHECKIDX: 00000000 N .debug$S
107CHECKIDX: 00000000 N .debug$T
108CHECKIDX: 00000000 i .drectve
109CHECKIDX: 00000000 r .rdata
110CHECKIDX: 00000000 r .rdata
111CHECKIDX: 00000000 r .rdata
112CHECKIDX: 00000000 r .rdata
113CHECKIDX: 00000000 r .rdata
114CHECKIDX: 00000000 r .rdata
115CHECKIDX: 00000000 r .rdata
116CHECKIDX: 00000000 r .rdata
117CHECKIDX: 00000000 r .rdata
118CHECKIDX: 00000000 r .rdata
119CHECKIDX: 00000000 r .rdata
120CHECKIDX: 00000000 r .rdata
121CHECKIDX: 00000000 r .rdata
122CHECKIDX: 00000000 r .rdata
123CHECKIDX: 00000000 r .rdata
124CHECKIDX: 00000000 r .rdata
125CHECKIDX: 00000000 r .rdata
126CHECKIDX: 00000000 r .rdata
127CHECKIDX: 00000000 r .rdata
128CHECKIDX: 00000000 r .rdata
129CHECKIDX: 00000000 r .rdata
130CHECKIDX: 00000000 r .rdata
131CHECKIDX: 00000000 r .rdata$r
132CHECKIDX: 00000000 r .rdata$r
133CHECKIDX: 00000000 r .rdata$r
134CHECKIDX: 00000000 r .rdata$r
135CHECKIDX: 00000000 r .rdata$r
136CHECKIDX: 00000000 r .rdata$r
137CHECKIDX: 00000000 r .rdata$r
138CHECKIDX: 00000000 r .rdata$r
139CHECKIDX: 00000000 r .rdata$r
140CHECKIDX: 00000000 r .rdata$r
141CHECKIDX: 00000000 r .rdata$r
142CHECKIDX: 00000000 r .rtc$IMZ
143CHECKIDX: 00000000 r .rtc$TMZ
144CHECKIDX: 00000000 N .sxdata
145CHECKIDX: 00000000 t .text
146CHECKIDX: 00000000 t .text
147CHECKIDX: 00000000 t .text
148CHECKIDX: 00000000 t .text
149CHECKIDX: 00000000 t .text
150CHECKIDX: 00000000 t .text
151CHECKIDX: 00000000 t .text
152CHECKIDX: 00000000 t .text
153CHECKIDX: 00000000 t .text
154CHECKIDX: 00000000 t .text
155CHECKIDX: 00000000 t .text$x
156CHECKIDX: 00000000 r .xdata$x
157CHECKIDX: 00000000 r .xdata$x
158CHECKIDX: 00000000 r .xdata$x
159CHECKIDX: 00000000 r .xdata$x
160CHECKIDX: 00000000 r .xdata$x
161CHECKIDX: 00000000 r .xdata$x
162CHECKIDX: 00000000 r .xdata$x
163CHECKIDX: 00000000 T ??0invalid_argument@std@@QAE@PBD@Z
164CHECKIDX: 00000000 T ??0logic_error@std@@QAE@PBD@Z
165CHECKIDX: 00000000 T ??1invalid_argument@std@@UAE@XZ
166CHECKIDX: 00000000 T ??1logic_error@std@@UAE@XZ
167CHECKIDX: 00000000 R ??_C@_0BC@IHENMCGI@b?5cannot?5be?5zero?$CB?$AA@
168CHECKIDX: 00000000 T ??_Ginvalid_argument@std@@UAEPAXI@Z
169CHECKIDX: 00000000 T ??_Glogic_error@std@@UAEPAXI@Z
170CHECKIDX: 00000000 D ??_R0?AVexception@std@@@8
171CHECKIDX: 00000000 D ??_R0?AVinvalid_argument@std@@@8
172CHECKIDX: 00000000 D ??_R0?AVlogic_error@std@@@8
173CHECKIDX: 00000000 D ??_R0PAVexception@std@@@8
174CHECKIDX: 00000000 D ??_R0PAVinvalid_argument@std@@@8
175CHECKIDX: 00000000 D ??_R0PAVlogic_error@std@@@8
176CHECKIDX: 00000000 D ??_R0PAX@8
177CHECKIDX: 00000000 R ??_R1A@?0A@EA@exception@std@@8
178CHECKIDX: 00000000 R ??_R1A@?0A@EA@invalid_argument@std@@8
179CHECKIDX: 00000000 R ??_R1A@?0A@EA@logic_error@std@@8
180CHECKIDX: 00000000 R ??_R2exception@std@@8
181CHECKIDX: 00000000 R ??_R2invalid_argument@std@@8
182CHECKIDX: 00000000 R ??_R2logic_error@std@@8
183CHECKIDX: 00000000 R ??_R3exception@std@@8
184CHECKIDX: 00000000 R ??_R3invalid_argument@std@@8
185CHECKIDX: 00000000 R ??_R3logic_error@std@@8
186CHECKIDX: 00000000 R ??_R4invalid_argument@std@@6B@
187CHECKIDX: 00000000 R ??_R4logic_error@std@@6B@
188CHECKIDX: 00000000 T ?Add@MyMathFuncs@MathFuncs@@SANNN@Z
189CHECKIDX: 00000000 T ?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
190CHECKIDX: 00000000 T ?Multiply@MyMathFuncs@MathFuncs@@SANNN@Z
191CHECKIDX: 00000000 T ?Subtract@MyMathFuncs@MathFuncs@@SANNN@Z
192CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@C@std@@2HB
193CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@D@std@@2HB
194CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@E@std@@2HB
195CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@F@std@@2HB
196CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@G@std@@2HB
197CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@H@std@@2HB
198CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@I@std@@2HB
199CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@J@std@@2HB
200CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@K@std@@2HB
201CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@M@std@@2HB
202CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@N@std@@2HB
203CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@O@std@@2HB
204CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@_J@std@@2HB
205CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@_K@std@@2HB
206CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@_N@std@@2HB
207CHECKIDX: 00000000 R ?value@?$integral_constant@I$0A@@tr1@std@@2IB
208CHECKIDX: 00000000 R ?value@?$integral_constant@_N$00@tr1@std@@2_NB
209CHECKIDX: 00000000 R ?value@?$integral_constant@_N$0A@@tr1@std@@2_NB
210CHECKIDX: 00000000 R __CT??_R0PAVexception@std@@@84
211CHECKIDX: 00000000 R __CT??_R0PAVinvalid_argument@std@@@84
212CHECKIDX: 00000000 R __CT??_R0PAVlogic_error@std@@@84
213CHECKIDX: 00000000 R __CT??_R0PAX@84
214CHECKIDX: 00000000 R __CTA4PAVinvalid_argument@std@@
215CHECKIDX: 00000000 r __RTC_InitBase.rtc$IMZ
216CHECKIDX: 00000000 r __RTC_Shutdown.rtc$TMZ
217CHECKIDX: 00000000 R __TI4PAVinvalid_argument@std@@
218CHECKIDX: 00000000 R __real@0000000000000000
219CHECKIDX: 00000000 t __unwindfunclet$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z$0
220CHECKIDX: 00000000 r __unwindtable$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
221CHECKIDX: 00000001 a @feat.00
222CHECKIDX: 00000004 R ??_7invalid_argument@std@@6B@
223CHECKIDX: 00000004 R ??_7logic_error@std@@6B@
224CHECKIDX: 00000008 r __ehfuncinfo$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
225CHECKIDX: 0000000e t __ehhandler$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
226CHECKIDX: 00ab9d1b a @comp.id
227