On Tue, Nov 14, 2017 at 05:21:41PM -0500, Fritz Reese wrote: > On Tue, Nov 14, 2017 at 4:58 PM, Janus Weil <ja...@gcc.gnu.org> wrote: > > Error: The module or main program array ‘x’ at (1) must have constant shape > > pr78240.f90:11:19: > > > > integer x(n) /1/ ! { dg-error "Nonconstant array" } > > 1 > > Error: Nonconstant array section at (1) in DATA statement > > [...] > > ... does anyone know how to tell dejagnu to expect multiple errors on > a single line?
You can use an OR in the dg-error directive. integer x(n) /1/ ! { dg-error "module or main" | "Nonconstant array" } You can also use a prune directive. ! { dg-prune-output "module or main" } See https://gcc.gnu.org/wiki/TestCaseWriting and examples in gfortran.dg. -- Steve 20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4 20161221 https://www.youtube.com/watch?v=IbCHE-hONow