llvm-project/flang/test/Driver/integer-overflow.f90
Yusuke MINATO 9698e57548
[flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (#110061)
This patch introduces the options for integer overflow flags into Flang.
The behavior is similar to that of Clang.
2024-10-18 16:30:23 +09:00

11 lines
428 B
Fortran

! Test for correct forwarding of integer overflow flags from the compiler driver
! to the frontend driver
! RUN: %flang -### -fno-strict-overflow %s 2>&1 | FileCheck %s --check-prefix=INDUCED
! RUN: %flang -### -fstrict-overflow %s 2>&1 | FileCheck %s
! RUN: %flang -### -fno-wrapv %s 2>&1 | FileCheck %s
! RUN: %flang -### -fno-wrapv -fno-strict-overflow %s 2>&1 | FileCheck %s
! CHECK-NOT: "-fno-wrapv"
! INDUCED: "-fwrapv"