19 lines · plain
1; This file is a valid LLVM IR file, but we force the driver to treat it as2; FIR (with the `-x` flag). This way we verify that the driver3; correctly rejects invalid FIR input.4 5; Input type is implicit (correctly assumed to be LLVM IR)6; RUN: %flang_fc1 -S %s -o -7 8; Input type is explicitly set as FIR9; Verify that parsing errors are correctly reported by the driver10; RUN: not %flang_fc1 -S -x fir %s 2>&1 | FileCheck %s --check-prefix=ERROR11; RUN: not %flang_fc1 -S %s -x mlir 2>&1 | FileCheck %s --check-prefix=ERROR12 13; ERROR: error: unexpected character14; ERROR: error: Could not parse FIR15 16define void @foo() {17 ret void18}19