testsuite: Fix lambda-vis.C for targets with user label prefix '_'.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 20 Mar 2020 21:27:13 +0000 (21:27 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 22 Mar 2020 09:20:41 +0000 (09:20 +0000)
This prepends an optional match for the additional USER_LABEL_PREFIX
to the scan assembler checks.

2020-03-22  Iain Sandoe  <iain@sandoe.co.uk>

* g++.dg/abi/lambda-vis.C: Amend assembler match
strings for targets using a USER_LABEL_PREFIX.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/lambda-vis.C

index c8701caaf6f097b8aad7c5990312613637ce9a83..bd38b940a2db855ac3d02066d705d0698a48cea9 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-22  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * g++.dg/abi/lambda-vis.C: Amend assembler match
+       strings for targets using a USER_LABEL_PREFIX.
+
 2020-03-22  Iain Buclaw  <ibuclaw@gdcproject.org>
 
        PR d/93038
index c3eb157dc20889e22f89d42dc4f88499abbd01a9..89683b2076a0ebf82bfca512dcd64c44691d1ace 100644 (file)
@@ -13,11 +13,11 @@ int gvar = gfoo (capture ([]{}));
 
 inline int ivar = ifoo (capture ([]{}));
 
-// { dg-final { scan-assembler {_Z7captureINL4svarMUlvE_EE7WrapperIT_EOS2_:} } }
-// { dg-final { scan-assembler {_Z7captureIN4gvarMUlvE_EE7WrapperIT_EOS2_:} } }
-// { dg-final { scan-assembler {_Z7captureIN4ivarMUlvE_EE7WrapperIT_EOS2_:} } }
+// { dg-final { scan-assembler {_?_Z7captureINL4svarMUlvE_EE7WrapperIT_EOS2_:} } }
+// { dg-final { scan-assembler {_?_Z7captureIN4gvarMUlvE_EE7WrapperIT_EOS2_:} } }
+// { dg-final { scan-assembler {_?_Z7captureIN4ivarMUlvE_EE7WrapperIT_EOS2_:} } }
 
 // Calls to the foos are emitted.
-// { dg-final { scan-assembler {call[ \t]*_Z4sfooI7WrapperINL4svarMUlvE_EEEiT_} { target { i?86-*-* x86_64-*-* } } } }
-// { dg-final { scan-assembler {call[ \t]*_Z4gfooI7WrapperIN4gvarMUlvE_EEEiT_} { target { i?86-*-* x86_64-*-* } } } }
-// { dg-final { scan-assembler {call[ \t]*_Z4ifooI7WrapperIN4ivarMUlvE_EEEiT_} { target { i?86-*-* x86_64-*-* } } } }
+// { dg-final { scan-assembler {call[ \t]*_?_Z4sfooI7WrapperINL4svarMUlvE_EEEiT_} { target { i?86-*-* x86_64-*-* } } } }
+// { dg-final { scan-assembler {call[ \t]*_?_Z4gfooI7WrapperIN4gvarMUlvE_EEEiT_} { target { i?86-*-* x86_64-*-* } } } }
+// { dg-final { scan-assembler {call[ \t]*_?_Z4ifooI7WrapperIN4ivarMUlvE_EEEiT_} { target { i?86-*-* x86_64-*-* } } } }