emit-obj.f90
744 Bytes
! RUN: not %flang-new %s 2>&1 | FileCheck %s --check-prefix=ERROR-IMPLICIT
! RUN: not %flang-new -emit-obj %s 2>&1 | FileCheck %s --check-prefix=ERROR-EXPLICIT
! RUN: not %flang-new -fc1 -emit-obj %s 2>&1 | FileCheck %s --check-prefix=ERROR-FC1
! REQUIRES: new-flang-driver
! By default (e.g. when no options like `-E` are passed) flang-new
! creates a job that corresponds to `-emit-obj`. This option/action is
! not yet supported. Verify that this is correctly reported as error.
! ERROR-IMPLICIT: error: unknown argument: '-triple'
! ERROR-IMPLICIT: error: unknown argument: '-emit-obj'
! ERROR-IMPLICIT: error: unknown argument: '-o'
! ERROR-EXPLICIT: error: unknown argument: '-o'
! ERROR-FC1: error: unknown argument: '-emit-obj'