aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/expand
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-12-05 03:36:26 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-12-10 23:26:23 +0100
commitc0123a2f917241e52c5844655abbd83f56ff1017 (patch)
treeb33eb179f2eb0f1dfc07a0e9f7c864398760f53f /validation/expand
parent9e1c8ec13686b2c9ca726066501f5988b78a0504 (diff)
downloadsparse-dev-c0123a2f917241e52c5844655abbd83f56ff1017.tar.gz
fix expansion of initializer (mismatching type)
Currently, the expansion of constant initializers is done whenever the offset in the initializer match the one being expanded. However, it's not correct to do this expansion of an integer with the initializer for a float and vice-versa. Fix this by adding the corresponding tests to the other tests of the value. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/expand')
-rw-r--r--validation/expand/constant-union-flt2int.c1
-rw-r--r--validation/expand/constant-union-int2flt.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/validation/expand/constant-union-flt2int.c b/validation/expand/constant-union-flt2int.c
index 1c8f480b..5e25b592 100644
--- a/validation/expand/constant-union-flt2int.c
+++ b/validation/expand/constant-union-flt2int.c
@@ -13,7 +13,6 @@ static int foo(void)
* check-name: constant-union-float-to-int
* check description: must not infer the int value from the float
* check-command: test-linearize -fdump-ir $file
- * check-known-to-fail
*
* check-output-ignore
* check-output-pattern(1): setfval\\.
diff --git a/validation/expand/constant-union-int2flt.c b/validation/expand/constant-union-int2flt.c
index ff0a642a..16ce1c6f 100644
--- a/validation/expand/constant-union-int2flt.c
+++ b/validation/expand/constant-union-int2flt.c
@@ -13,7 +13,6 @@ static float foo(void)
* check-name: constant-union-int-to-float
* check description: must not infer the float value from the int
* check-command: test-linearize -fdump-ir $file
- * check-known-to-fail
*
* check-output-ignore
* check-output-pattern(1): load\\.