Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waterlens committed Jan 15, 2025
1 parent 72f817d commit 35f7346
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hkmc2/jvm/src/test/scala/hkmc2/LlirDiffMaker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract class LlirDiffMaker extends BbmlDiffMaker:
output("\nCpp:")
output(cpp.toDocument.toString)
if rcpp.isSet then
val auxPath = os.pwd/os.up/"shared"/"src"/"test"/"mlscript-compile"/"cpp"
val auxPath = os.pwd/"hkmc2"/"shared"/"src"/"test"/"mlscript-compile"/"cpp"
val cppHost = CppCompilerHost(auxPath.toString, output.apply)
if !cppHost.ready then
output("\nCpp Compilation Failed: Cpp compiler or GNU Make not found")
Expand All @@ -62,4 +62,4 @@ abstract class LlirDiffMaker extends BbmlDiffMaker:
catch
case e: LowLevelIRError =>
output("Stopped due to an error during the Llir generation")

4 changes: 2 additions & 2 deletions hkmc2/shared/src/test/mlscript/llir/BadPrograms.mls
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
:llir
:cpp

:ge
fun oops(a) =
class A with
fun m = a
let x = 1
//│ FAILURE: Unexpected runtime error
//│ ═══[COMPILATION ERROR] Non top-level definition A not supported
//│ Stopped due to an error during the Llir generation

:ge
let x = "oops"
x.m
//│ FAILURE: Unexpected runtime error
//│ ═══[COMPILATION ERROR] Unsupported selection by users
//│ Stopped due to an error during the Llir generation

Expand Down

0 comments on commit 35f7346

Please sign in to comment.