1 ; This file is a valid LLVM IR file, but we force the driver to treat it as
2 ; FIR (with the `-x` flag). This way we verify that the driver
3 ; correctly rejects invalid FIR input.
5 ; Input type is implicit (correctly assumed to be LLVM IR)
6 ; RUN: %flang_fc1 -S %s -o -
8 ; Input type is explicitly set as FIR
9 ; Verify that parsing errors are correctly reported by the driver
10 ; RUN: not %flang_fc1 -S -x fir %s 2>&1 | FileCheck %s --check-prefix=ERROR
11 ; RUN: not %flang_fc1 -S %s -x mlir 2>&1 | FileCheck %s --check-prefix=ERROR
13 ; ERROR: error: unexpected character
14 ; ERROR: error: Could not parse FIR