Skip to content

Commit 6620cdb

Browse files
committed
Make regression test pass when sizeof(size_t) == sizeof(int)
The type cast previously tested for in the regression test will only be introduced when the type of an array index is not the same as int. Thus the test spuriously failed on 32-bit x86 platforms.
1 parent 8401f49 commit 6620cdb

File tree

1 file changed

+2
-2
lines changed
  • regression/goto-analyzer/dependence-graph14

1 file changed

+2
-2
lines changed

regression/goto-analyzer/dependence-graph14/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ main.c
44
activate-multi-line-match
55
^EXIT=0$
66
^SIGNAL=0$
7-
\/\/ ([0-9]+).*\n.*a\[\(signed long( long)? int\)2\] = 2;(.*\n)*Data dependencies: (\1)\n(.*\n){2,3}.*out = *
7+
\/\/ ([0-9]+).*\n.*a\[(\(signed long( long)? int\))?2\] = 2;(.*\n)*Data dependencies: (\1)\n(.*\n){2,3}.*out = *
88
--
9-
\/\/ ([0-9]+).*\n.*a\[\(signed long( long)? int\)1\] = 1;(.*\n)*Data dependencies: (\1)\n(.*\n){2,3}.*out = *
9+
\/\/ ([0-9]+).*\n.*a\[(\(signed long( long)? int\))?1\] = 1;(.*\n)*Data dependencies: (\1)\n(.*\n){2,3}.*out = *
1010
^warning: ignoring
1111
--
1212

0 commit comments

Comments
 (0)