[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Driver / default-optimization-pipelines.f90
blob8a6ea57bdab33b838309d5845f0f0cf661dc520b
1 ! Verify that`-O{n}` is indeed taken into account when defining the LLVM optimization/middle-end pass pipeline.
3 ! RUN: %flang -S -O0 %s -Xflang -fdebug-pass-manager -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O0
4 ! RUN: %flang_fc1 -S -O0 %s -fdebug-pass-manager -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O0
6 ! RUN: %flang -S -O2 %s -Xflang -fdebug-pass-manager -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O2
7 ! RUN: %flang_fc1 -S -O2 %s -fdebug-pass-manager -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O2
9 ! Verify that only the left-most `-O{n}` is used
10 ! RUN: %flang -S -O2 -O0 %s -Xflang -fdebug-pass-manager -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O0
11 ! RUN: %flang_fc1 -S -O2 -O0 %s -fdebug-pass-manager -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O0
13 ! CHECK-O0-NOT: Running pass: SimplifyCFGPass on simple_loop_
14 ! CHECK-O0: Running analysis: TargetLibraryAnalysis on simple_loop_
16 ! CHECK-O2: Running pass: SimplifyCFGPass on simple_loop_
18 subroutine simple_loop
19 integer :: i
20 do i=1,5
21 end do
22 end subroutine