forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for recursive generic-parameters
- Loading branch information
Matthias Güdemann
committed
Jun 7, 2018
1 parent
d7b1572
commit d196cf7
Showing
4 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+361 Bytes
jbmc/regression/jbmc/generics_recursive_parameters/MutuallyRecursiveGenerics.class
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
jbmc/regression/jbmc/generics_recursive_parameters/MutuallyRecursiveGenerics.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |