2021-01-06 23:42:24 +08:00
|
|
|
! Ensure the end-of-line character and anything that follows after in a macro definition (-D) is ignored.
|
|
|
|
|
|
|
|
! REQUIRES: new-flang-driver
|
|
|
|
|
|
|
|
!--------------------------
|
2021-04-09 18:32:31 +08:00
|
|
|
! FLANG DRIVER (flang)
|
2021-01-06 23:42:24 +08:00
|
|
|
!--------------------------
|
2021-04-09 18:32:31 +08:00
|
|
|
! RUN: printf -- "-DX=A\\\\\nTHIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT\n" | xargs %flang -E %s 2>&1 | FileCheck --strict-whitespace --match-full-lines %s
|
2021-01-06 23:42:24 +08:00
|
|
|
|
|
|
|
!-----------------------------------------
|
2021-04-09 18:32:31 +08:00
|
|
|
! FRONTEND FLANG DRIVER (flang_fc1)
|
2021-01-06 23:42:24 +08:00
|
|
|
!-----------------------------------------
|
2021-04-09 18:32:31 +08:00
|
|
|
! RUN: printf -- "-DX=A\\\\\nTHIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT\n" | xargs %flang_fc1 -E %s 2>&1 | FileCheck --strict-whitespace --match-full-lines %s
|
2021-01-06 23:42:24 +08:00
|
|
|
|
|
|
|
!-------------------------------
|
|
|
|
! EXPECTED OUTPUT FOR MACRO 'X'
|
|
|
|
!-------------------------------
|
|
|
|
! CHECK:start a end
|
|
|
|
! CHECK-NOT:THIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT
|
|
|
|
! CHECK-NOT:this_should_not_exist_in_the_output
|
|
|
|
|
2021-04-09 18:32:31 +08:00
|
|
|
START X END
|