@@ -234,8 +234,8 @@ INSTANTIATE_TEST_SUITE_P(DemangleInvalidTests, DemangleInvalidTestFixture,
234234
235235struct FPLiteralCase {
236236 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 ];
239239};
240240
241241struct DemangleFPLiteralTestFixture
@@ -245,13 +245,15 @@ FPLiteralCase g_fp_literal_cases[] = {
245245 // clang-format off
246246 {" _ZN5test01gIfEEvRAszplcvT__ELf40a00000E_c" ,
247247 {
248+ " void test0::g<float>(char (&) [sizeof ((float)() + 0x1.4000000000000p+2f)])" ,
248249 " void test0::g<float>(char (&) [sizeof ((float)() + 0x1.4p+2f)])" ,
249250 " void test0::g<float>(char (&) [sizeof ((float)() + 0x2.8p+1f)])" ,
250251 " void test0::g<float>(char (&) [sizeof ((float)() + 0x5p+0f)])" ,
251252 " void test0::g<float>(char (&) [sizeof ((float)() + 0xap-1f)])" ,
252253 }},
253254 {" _ZN5test01hIfEEvRAszplcvT__ELd4014000000000000E_c" ,
254255 {
256+ " void test0::h<float>(char (&) [sizeof ((float)() + 0x1.4000000000000p+2)])" ,
255257 " void test0::h<float>(char (&) [sizeof ((float)() + 0x1.4p+2)])" ,
256258 " void test0::h<float>(char (&) [sizeof ((float)() + 0x2.8p+1)])" ,
257259 " void test0::h<float>(char (&) [sizeof ((float)() + 0x5p+0)])" ,
@@ -260,6 +262,7 @@ FPLiteralCase g_fp_literal_cases[] = {
260262#if LDBL_FP80
261263 {" _ZN5test01hIfEEvRAcvjplstT_Le4001a000000000000000E_c" ,
262264 {
265+ " void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x1.4p+2L)])" ,
263266 " void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x1.4p+2L)])" ,
264267 " void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x2.8p+1L)])" ,
265268 " void test0::h<float>(char (&) [(unsigned int)(sizeof (float) + 0x5p+0L)])" ,
0 commit comments