Mercurial > hg > CbC > CbC_llvm
comparison flang/test/Driver/macro-multiline.F90 @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 ! Ensure the end-of-line character and anything that follows after in a macro definition (-D) is ignored. | 1 ! Ensure the end-of-line character and anything that follows after in a macro definition (-D) is ignored. |
2 | |
3 ! REQUIRES: new-flang-driver | |
4 | 2 |
5 !-------------------------- | 3 !-------------------------- |
6 ! FLANG DRIVER (flang) | 4 ! FLANG DRIVER (flang) |
7 !-------------------------- | 5 !-------------------------- |
8 ! 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 | 6 ! RUN: printf -- "-DX=A\\\\\nTHIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT\n" | xargs %flang -E -P %s 2>&1 | FileCheck --strict-whitespace --match-full-lines %s |
9 | 7 |
10 !----------------------------------------- | 8 !----------------------------------------- |
11 ! FRONTEND FLANG DRIVER (flang_fc1) | 9 ! FRONTEND FLANG DRIVER (flang_fc1) |
12 !----------------------------------------- | 10 !----------------------------------------- |
13 ! 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 | 11 ! RUN: printf -- "-DX=A\\\\\nTHIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT\n" | xargs %flang_fc1 -E -P %s 2>&1 | FileCheck --strict-whitespace --match-full-lines %s |
14 | 12 |
15 !------------------------------- | 13 ! CHECK: START A END |
16 ! EXPECTED OUTPUT FOR MACRO 'X' | |
17 !------------------------------- | |
18 ! CHECK:start a end | |
19 ! CHECK-NOT:THIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT | 14 ! CHECK-NOT:THIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT |
20 ! CHECK-NOT:this_should_not_exist_in_the_output | 15 ! CHECK-NOT:this_should_not_exist_in_the_output |
21 | 16 |
22 START X END | 17 START X END |