@@ -234,8 +234,8 @@ INSTANTIATE_TEST_SUITE_P(DemangleInvalidTests, DemangleInvalidTestFixture,
234
234
235
235
struct FPLiteralCase {
236
236
const char *mangled;
237
- // There are four possible demanglings of a given float.
238
- std::string expecting[4 ];
237
+ // There are multiple possible demanglings of a given float.
238
+ std::string expecting[5 ];
239
239
};
240
240
241
241
struct DemangleFPLiteralTestFixture
@@ -245,13 +245,15 @@ FPLiteralCase g_fp_literal_cases[] = {
245
245
// clang-format off
246
246
{" _ZN5test01gIfEEvRAszplcvT__ELf40a00000E_c" ,
247
247
{
248
+ " void test0::g<float>(char (&) [sizeof ((float)() + 0x1.4000000000000p+2f)])" ,
248
249
" void test0::g<float>(char (&) [sizeof ((float)() + 0x1.4p+2f)])" ,
249
250
" void test0::g<float>(char (&) [sizeof ((float)() + 0x2.8p+1f)])" ,
250
251
" void test0::g<float>(char (&) [sizeof ((float)() + 0x5p+0f)])" ,
251
252
" void test0::g<float>(char (&) [sizeof ((float)() + 0xap-1f)])" ,
252
253
}},
253
254
{" _ZN5test01hIfEEvRAszplcvT__ELd4014000000000000E_c" ,
254
255
{
256
+ " void test0::h<float>(char (&) [sizeof ((float)() + 0x1.4000000000000p+2)])" ,
255
257
" void test0::h<float>(char (&) [sizeof ((float)() + 0x1.4p+2)])" ,
256
258
" void test0::h<float>(char (&) [sizeof ((float)() + 0x2.8p+1)])" ,
257
259
" void test0::h<float>(char (&) [sizeof ((float)() + 0x5p+0)])" ,
@@ -260,6 +262,7 @@ FPLiteralCase g_fp_literal_cases[] = {
260
262
#if LDBL_FP80
261
263
{" _ZN5test01hIfEEvRAcvjplstT_Le4001a000000000000000E_c" ,
262
264
{
265
+ " void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x1.4p+2L)])" ,
263
266
" void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x1.4p+2L)])" ,
264
267
" void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x2.8p+1L)])" ,
265
268
" void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x5p+0L)])" ,
0 commit comments