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