diff --git a/Formula/mpfr.rb b/Formula/mpfr.rb index 4fe6e3279e..da34a6a19d 100644 --- a/Formula/mpfr.rb +++ b/Formula/mpfr.rb @@ -39,4 +39,21 @@ class Mpfr < Formula system "make", "check" system "make", "install" end + + test do + (testpath/"test.c").write <<-EOS.undent + #include + #include + + int main() + { + mpfr_t x; + mpfr_init(x); + mpfr_clear(x); + return 0; + } + EOS + system ENV.cc, "test.c", "-lgmp", "-lmpfr", "-o", "test" + system "./test" + end end