d: Fix gdc.dg/pr92216.d FAILs on 32-bit targets
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 1 Apr 2020 21:02:01 +0000 (23:02 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 1 Apr 2020 21:09:29 +0000 (23:09 +0200)
The symbol being scanned for only matched on 64-bit targets.

gcc/testsuite/ChangeLog:

PR d/94321
* gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit
pointers.

gcc/testsuite/ChangeLog
gcc/testsuite/gdc.dg/pr92216.d

index 4d617c72c1bad00e1c8a44a5db781479ea0a6e39..bcaf2e727a3a4330221351d513978f7cb1b25f07 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-01  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       PR d/94321
+       * gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit
+       pointers.
+
 2020-04-01  David Malcolm  <dmalcolm@redhat.com>
 
        PR analyzer/94378
index 330604c9c89785019a45a552529aeda881aa46e5..6a87025a7d076b7edde1ae19262e1f364cdcaab2 100644 (file)
@@ -1,8 +1,8 @@
 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92216
 // { dg-options "-I $srcdir/gdc.dg" }
 // { dg-do compile }
-// { dg-final { scan-assembler "_DT16_D7imports7pr922161B8__mixin24getSMFZPv\[: \t\n\]" } }
-// { dg-final { scan-assembler-not "(.globl|.global)\[         \]+_DT16_D7imports7pr922161B8__mixin24getSMFZPv" } }
+// { dg-final { scan-assembler "_DT(4|8|16)_D7imports7pr922161B8__mixin24getSMFZPv\[: \t\n\]" } }
+// { dg-final { scan-assembler-not "(.globl|.global)\[         \]+_DT(4|8|16)_D7imports7pr922161B8__mixin24getSMFZPv" } }
 module pr92216;
 
 private import imports.pr92216;