brintos

brintos / llvm-project-archived public Read only

0
0
Text · 429 B · c52fd51 Raw
13 lines · plain
1! This file is a valid Fortran file, but we force the driver to treat it as an2! LLVM file (with the `-x` flag). This way we verify that the driver correctly3! rejects invalid LLVM IR input.4 5! Input type is implicit (correctly assumed to be Fortran)6! RUN: %flang_fc1 -S -o /dev/null %s7! Input type is explicitly set as LLVM IR8! RUN: not %flang -S -x ir %s 2>&1 | FileCheck %s9 10! CHECK: error: Could not parse IR11 12end program13