Skip to content

Commit

Permalink
flang: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
paperchalice committed Apr 3, 2024
1 parent cc0a254 commit 37684ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Formula/llvm/flang.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ def install
end

test do
system "echo"
(testpath/"test.f90").write <<~EOS
program hello
print *, 'Hello, World!'
end program hello
EOS
system bin/"flang-new", "test.f90"
assert_match "Hello, World!", shell_output("./a.out")
end
end

0 comments on commit 37684ff

Please sign in to comment.