Skip to content

Commit

Permalink
Add regression test for recursive generic-parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Güdemann committed Jun 7, 2018
1 parent d7b1572 commit d196cf7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class KeyValue<K, V> {
KeyValue<K, V> next;
KeyValue<V, K> reverse;
K key;
V value;
}
class MutuallyRecursiveGenerics {
void f() {
KeyValue<String, Integer> example1;
}
}
9 changes: 9 additions & 0 deletions jbmc/regression/jbmc/generics_recursive_parameters/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CORE
MutuallyRecursiveGenerics.class
--cover location --function MutuallyRecursiveGenerics.f
^EXIT=0$
^SIGNAL=0$
--
--
This failed before due to infinite recursion in the way how the instantiated
generic parameters were used. cf. TG-3067

0 comments on commit d196cf7

Please sign in to comment.