Skip to content

Commit

Permalink
[flang] Fix failing test (#97634)
Browse files Browse the repository at this point in the history
Add requires line to not test when the target architecture isn't
supported.

Technically we could make it a bit less restrictive, but want green
builds.
  • Loading branch information
Leporacanthicus authored Jul 3, 2024
1 parent a3c5c83 commit b586498
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flang/test/Lower/mcmodel.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
! REQUIRES: aarch64-registered-target && x86-registered-target

! RUN: %flang_fc1 -triple aarch64 -emit-llvm -mcmodel=tiny %s -o - | FileCheck %s -check-prefix=CHECK-TINY
! RUN: %flang_fc1 -emit-llvm -mcmodel=small %s -o - | FileCheck %s -check-prefix=CHECK-SMALL
! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-llvm -mcmodel=kernel %s -o - | FileCheck %s -check-prefix=CHECK-KERNEL
Expand Down

0 comments on commit b586498

Please sign in to comment.