1 ! Test the -funderscoring flag
3 ! RUN: %flang_fc1 -S %s -o - 2>&1 | FileCheck %s --check-prefix=UNDERSCORING
4 ! RUN: %flang_fc1 -S -fno-underscoring %s -o - 2>&1 | FileCheck %s --check-prefix=NO-UNDERSCORING
13 ! UNDERSCORING-NOT: {{test:$}}
14 ! UNDERSCORING: ext_sub_
15 ! UNDERSCORING-NOT: {{ext_sub[^_]*$}}
16 ! UNDERSCORING: comblk_
17 ! UNDERSCORING-NOT: comblk,
19 ! NO-UNDERSCORING-NOT: test_
20 ! NO-UNDERSCORING: test:
21 ! NO-UNDERSCORING-NOT: ext_sub_
22 ! NO-UNDERSCORING: {{ext_sub[^_]*$}}
23 ! NO-UNDERSCORING-NOT: comblk_
24 ! NO-UNDERSCORING: {{comblk[^_]*$}}