Skip to content

Commit

Permalink
[driver] Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
RichBarton-Arm authored and bryanpkc committed May 20, 2022
1 parent 3df4dcb commit 4023232
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions clang/test/Driver/flang/classic-flang-emit-flang-llvm.f95
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
! REQUIRES: classic_flang

! Check that the -emit-flang-llvm option dumps LLVM IR pre-optimisation

! RUN: %clang --driver-mode=flang -emit-flang-llvm -S -o %t.ll %s -### 2>&1 \
! RUN: | FileCheck %s
! CHECK-NOT: argument unused during compilation: '-S'
! CHECK: "{{.*}}flang1"
! CHECK-NEXT: "{{.*}}flang2"
! CHECK-NOT: "{{.*}}clang{{.*}}" "-cc1"

0 comments on commit 4023232

Please sign in to comment.