[Git][ghc/ghc][wip/T24634-oneshot-bytecode] debug

Torsten Schmits (@torsten.schmits) gitlab at gitlab.haskell.org
Fri Sep 6 13:54:30 UTC 2024



Torsten Schmits pushed to branch wip/T24634-oneshot-bytecode at Glasgow Haskell Compiler / GHC


Commits:
2088616d by Torsten Schmits at 2024-09-06T15:33:22+02:00
debug

- - - - -


2 changed files:

- testsuite/tests/bytecode/T25090/Makefile
- testsuite/tests/bytecode/T25090/all.T


Changes:

=====================================
testsuite/tests/bytecode/T25090/Makefile
=====================================
@@ -2,13 +2,18 @@ TOP=../../..
 include $(TOP)/mk/boilerplate.mk
 include $(TOP)/mk/test.mk
 
+# Verify that the object files aren't linked by clobbering them.
 T25090a:
 	$(TEST_HC) -c -fbyte-code-and-object-code C.hs-boot
 	$(TEST_HC) -c -fbyte-code-and-object-code B.hs
 	$(TEST_HC) -c -fbyte-code-and-object-code C.hs
+	echo 'corrupt' > B.o
+	echo 'corrupt' > C.o
+	echo 'corrupt' > C.o-boot
 	$(TEST_HC) -c -fbyte-code-and-object-code D.hs
+	echo 'corrupt' > D.o
 	$(TEST_HC) -c -fbyte-code-and-object-code -fprefer-byte-code A.hs
-	$(TEST_HC) -fbyte-code-and-object-code -fprefer-byte-code D.o C.o B.o A.o -o exe
+	$(TEST_HC) -fbyte-code-and-object-code -fprefer-byte-code A.o -o exe
 	./exe
 
 T25090b:


=====================================
testsuite/tests/bytecode/T25090/all.T
=====================================
@@ -15,5 +15,4 @@ def test_T25090(name):
      [])
 
 test_T25090('T25090a')
-
 test_T25090('T25090b')



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2088616d47d89831851c54d36917137ba949fcf9

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2088616d47d89831851c54d36917137ba949fcf9
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240906/2469d17d/attachment-0001.html>


More information about the ghc-commits mailing list