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
69CHECKIDX: Debug\mymath.obj:
70CHECKIDX: 00000000 d .data
71CHECKIDX: 00000000 d .data
72CHECKIDX: 00000000 d .data
73CHECKIDX: 00000000 d .data
74CHECKIDX: 00000000 d .data
75CHECKIDX: 00000000 d .data
76CHECKIDX: 00000000 d .data
77CHECKIDX: 00000000 N .debug$S
78CHECKIDX: 00000000 N .debug$S
79CHECKIDX: 00000000 N .debug$S
80CHECKIDX: 00000000 N .debug$S
81CHECKIDX: 00000000 N .debug$S
82CHECKIDX: 00000000 N .debug$S
83CHECKIDX: 00000000 N .debug$S
84CHECKIDX: 00000000 N .debug$S
85CHECKIDX: 00000000 N .debug$S
86CHECKIDX: 00000000 N .debug$S
87CHECKIDX: 00000000 N .debug$S
88CHECKIDX: 00000000 N .debug$T
89CHECKIDX: 00000000 i .drectve
90CHECKIDX: 00000000 r .rdata
91CHECKIDX: 00000000 r .rdata
92CHECKIDX: 00000000 r .rdata
93CHECKIDX: 00000000 r .rdata
94CHECKIDX: 00000000 r .rdata
95CHECKIDX: 00000000 r .rdata
96CHECKIDX: 00000000 r .rdata
97CHECKIDX: 00000000 r .rdata
98CHECKIDX: 00000000 r .rdata
99CHECKIDX: 00000000 r .rdata
100CHECKIDX: 00000000 r .rdata
101CHECKIDX: 00000000 r .rdata
102CHECKIDX: 00000000 r .rdata
103CHECKIDX: 00000000 r .rdata
104CHECKIDX: 00000000 r .rdata
105CHECKIDX: 00000000 r .rdata
106CHECKIDX: 00000000 r .rdata
107CHECKIDX: 00000000 r .rdata
108CHECKIDX: 00000000 r .rdata
109CHECKIDX: 00000000 r .rdata
110CHECKIDX: 00000000 r .rdata
111CHECKIDX: 00000000 r .rdata
112CHECKIDX: 00000000 r .rdata$r
113CHECKIDX: 00000000 r .rdata$r
114CHECKIDX: 00000000 r .rdata$r
115CHECKIDX: 00000000 r .rdata$r
116CHECKIDX: 00000000 r .rdata$r
117CHECKIDX: 00000000 r .rdata$r
118CHECKIDX: 00000000 r .rdata$r
119CHECKIDX: 00000000 r .rdata$r
120CHECKIDX: 00000000 r .rdata$r
121CHECKIDX: 00000000 r .rdata$r
122CHECKIDX: 00000000 r .rdata$r
123CHECKIDX: 00000000 r .rtc$IMZ
124CHECKIDX: 00000000 r .rtc$TMZ
125CHECKIDX: 00000000 N .sxdata
126CHECKIDX: 00000000 t .text
127CHECKIDX: 00000000 t .text
128CHECKIDX: 00000000 t .text
129CHECKIDX: 00000000 t .text
130CHECKIDX: 00000000 t .text
131CHECKIDX: 00000000 t .text
132CHECKIDX: 00000000 t .text
133CHECKIDX: 00000000 t .text
134CHECKIDX: 00000000 t .text
135CHECKIDX: 00000000 t .text
136CHECKIDX: 00000000 t .text$x
137CHECKIDX: 00000000 r .xdata$x
138CHECKIDX: 00000000 r .xdata$x
139CHECKIDX: 00000000 r .xdata$x
140CHECKIDX: 00000000 r .xdata$x
141CHECKIDX: 00000000 r .xdata$x
142CHECKIDX: 00000000 r .xdata$x
143CHECKIDX: 00000000 r .xdata$x
144CHECKIDX: 00000000 T ??0invalid_argument@std@@QAE@PBD@Z
145CHECKIDX: 00000000 T ??0logic_error@std@@QAE@PBD@Z
146CHECKIDX: 00000000 T ??1invalid_argument@std@@UAE@XZ
147CHECKIDX: 00000000 T ??1logic_error@std@@UAE@XZ
148CHECKIDX: 00000000 R ??_C@_0BC@IHENMCGI@b?5cannot?5be?5zero?$CB?$AA@
149CHECKIDX: 00000000 T ??_Ginvalid_argument@std@@UAEPAXI@Z
150CHECKIDX: 00000000 T ??_Glogic_error@std@@UAEPAXI@Z
151CHECKIDX: 00000000 D ??_R0?AVexception@std@@@8
152CHECKIDX: 00000000 D ??_R0?AVinvalid_argument@std@@@8
153CHECKIDX: 00000000 D ??_R0?AVlogic_error@std@@@8
154CHECKIDX: 00000000 D ??_R0PAVexception@std@@@8
155CHECKIDX: 00000000 D ??_R0PAVinvalid_argument@std@@@8
156CHECKIDX: 00000000 D ??_R0PAVlogic_error@std@@@8
157CHECKIDX: 00000000 D ??_R0PAX@8
158CHECKIDX: 00000000 R ??_R1A@?0A@EA@exception@std@@8
159CHECKIDX: 00000000 R ??_R1A@?0A@EA@invalid_argument@std@@8
160CHECKIDX: 00000000 R ??_R1A@?0A@EA@logic_error@std@@8
161CHECKIDX: 00000000 R ??_R2exception@std@@8
162CHECKIDX: 00000000 R ??_R2invalid_argument@std@@8
163CHECKIDX: 00000000 R ??_R2logic_error@std@@8
164CHECKIDX: 00000000 R ??_R3exception@std@@8
165CHECKIDX: 00000000 R ??_R3invalid_argument@std@@8
166CHECKIDX: 00000000 R ??_R3logic_error@std@@8
167CHECKIDX: 00000000 R ??_R4invalid_argument@std@@6B@
168CHECKIDX: 00000000 R ??_R4logic_error@std@@6B@
169CHECKIDX: 00000000 T ?Add@MyMathFuncs@MathFuncs@@SANNN@Z
170CHECKIDX: 00000000 T ?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
171CHECKIDX: 00000000 T ?Multiply@MyMathFuncs@MathFuncs@@SANNN@Z
172CHECKIDX: 00000000 T ?Subtract@MyMathFuncs@MathFuncs@@SANNN@Z
173CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@C@std@@2HB
174CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@D@std@@2HB
175CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@E@std@@2HB
176CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@F@std@@2HB
177CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@G@std@@2HB
178CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@H@std@@2HB
179CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@I@std@@2HB
180CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@J@std@@2HB
181CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@K@std@@2HB
182CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@M@std@@2HB
183CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@N@std@@2HB
184CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@O@std@@2HB
185CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@_J@std@@2HB
186CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@_K@std@@2HB
187CHECKIDX: 00000000 R ?_Rank@?$_Arithmetic_traits@_N@std@@2HB
188CHECKIDX: 00000000 R ?value@?$integral_constant@I$0A@@tr1@std@@2IB
189CHECKIDX: 00000000 R ?value@?$integral_constant@_N$00@tr1@std@@2_NB
190CHECKIDX: 00000000 R ?value@?$integral_constant@_N$0A@@tr1@std@@2_NB
191CHECKIDX: 00000000 R __CT??_R0PAVexception@std@@@84
192CHECKIDX: 00000000 R __CT??_R0PAVinvalid_argument@std@@@84
193CHECKIDX: 00000000 R __CT??_R0PAVlogic_error@std@@@84
194CHECKIDX: 00000000 R __CT??_R0PAX@84
195CHECKIDX: 00000000 R __CTA4PAVinvalid_argument@std@@
196CHECKIDX: 00000000 r __RTC_InitBase.rtc$IMZ
197CHECKIDX: 00000000 r __RTC_Shutdown.rtc$TMZ
198CHECKIDX: 00000000 R __TI4PAVinvalid_argument@std@@
199CHECKIDX: 00000000 R __real@0000000000000000
200CHECKIDX: 00000000 t __unwindfunclet$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z$0
201CHECKIDX: 00000000 r __unwindtable$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
202CHECKIDX: 00000001 a @feat.00
203CHECKIDX: 00000004 R ??_7invalid_argument@std@@6B@
204CHECKIDX: 00000004 R ??_7logic_error@std@@6B@
205CHECKIDX: 00000008 r __ehfuncinfo$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
206CHECKIDX: 0000000e t __ehhandler$?Divide@MyMathFuncs@MathFuncs@@SANNN@Z
207CHECKIDX: 00ab9d1b a @comp.id
208CHECKIDX:          U ??2@YAPAXI@Z
209CHECKIDX:          U ??3@YAXPAX@Z
210CHECKIDX:          U ??_7type_info@@6B@
211CHECKIDX:          w ??_Einvalid_argument@std@@UAEPAXI@Z
212CHECKIDX:          w ??_Elogic_error@std@@UAEPAXI@Z
213CHECKIDX:          U ??_Ginvalid_argument@std@@UAEPAXI@Z
214CHECKIDX:          U ??_Glogic_error@std@@UAEPAXI@Z
215CHECKIDX:          U ?what@exception@std@@UBEPBDXZ
216CHECKIDX:          U @__security_check_cookie@4
217CHECKIDX:          U __CxxThrowException@8
218CHECKIDX:          U __RTC_CheckEsp
219CHECKIDX:          U __RTC_InitBase
220CHECKIDX:          U __RTC_Shutdown
221CHECKIDX:          U ___CxxFrameHandler3
222CHECKIDX:          U ___security_cookie
223CHECKIDX:          U __fltused
224CHECKIDX:          U __imp_??0exception@std@@QAE@ABQBD@Z
225CHECKIDX:          U __imp_??1exception@std@@UAE@XZ
226