1! This file is a valid Fortran file, but we force the driver to treat it as an 2! LLVM file (with the `-x` flag). This way we verify that the driver correctly 3! rejects invalid LLVM IR input. 4 5!---------- 6! RUN LINES 7!---------- 8! Input type is implicit (correctly assumed to be Fortran) 9! RUN: %flang_fc1 -S -o /dev/null %s 10! Input type is explicitly set as LLVM IR 11! RUN: not %flang -S -x ir %s 2>&1 | FileCheck %s 12 13!---------------- 14! EXPECTED OUTPUT 15!---------------- 16! CHECK: error: Could not parse IR 17 18end program 19