Generalise the integerToInt_smallInteger test (now fromToInteger)
[ghc.git] / testsuite / tests / lib / integer / Makefile
index 71a34a3..227362d 100644 (file)
@@ -36,10 +36,12 @@ integerConstantFolding:
        $(call CHECK,\<400280.0\>,encodeIntegerFloat)
        ./integerConstantFolding
 
-.PHONY: integerToInt_smallInteger
-integerToInt_smallInteger:
-       '$(TEST_HC)' -Wall -v0 -O -c integerToInt_smallInteger.hs -fforce-recomp -ddump-simpl > integerToInt_smallInteger.simpl
-# Rules should eliminate both functions
-       -grep integerToInt integerToInt_smallInteger.simpl
-       -grep smallInteger integerToInt_smallInteger.simpl
+.PHONY: fromToInteger
+fromToInteger:
+       '$(TEST_HC)' -Wall -v0 -O -c fromToInteger.hs -fforce-recomp -ddump-simpl > fromToInteger.simpl
+# Rules should eliminate all functions
+       -grep integerToInt fromToInteger.simpl
+       -grep smallInteger fromToInteger.simpl
+       -grep integerToWord fromToInteger.simpl
+       -grep wordToInteger fromToInteger.simpl