X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/acaf905b1130aae80fa59d2c861ffd4c8eb75486..acbadd0046cb1643eeaf8595ede1a69cc25d3158:/test/automated/f90.el diff --git a/test/automated/f90.el b/test/automated/f90.el index 25b77f07ad..dd627605df 100644 --- a/test/automated/f90.el +++ b/test/automated/f90.el @@ -1,6 +1,6 @@ ;;; f90.el --- tests for progmodes/f90.el -;; Copyright (C) 2011-2012 Free Software Foundation, Inc. +;; Copyright (C) 2011-2013 Free Software Foundation, Inc. ;; Author: Glenn Morris @@ -154,5 +154,23 @@ end module modname") (f90-indent-line) (should (= 0 (current-indentation))))) +(ert-deftest f90-test-bug13138 () + "Test for http://debbugs.gnu.org/13138 ." + (with-temp-buffer + (f90-mode) + (insert "program prog + integer :: i = & +#ifdef foo + & 1 +#else + & 2 +#endif + + write(*,*) i +end program prog") + (goto-char (point-min)) + (forward-line 2) + (f90-indent-subprogram) + (should (= 0 (current-indentation))))) ;;; f90.el ends here