diff --git a/Formula/llvm/flang.rb b/Formula/llvm/flang.rb index 374eb39d..56d0c7fb 100644 --- a/Formula/llvm/flang.rb +++ b/Formula/llvm/flang.rb @@ -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