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