
This patch introduces the options for integer overflow flags into Flang. The behavior is similar to that of Clang.
11 lines
428 B
Fortran
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"
|