Skip to content

Commit

Permalink
[test] Set target triple for Driver/miamcu-opt.c
Browse files Browse the repository at this point in the history
Otherwise %clang may fail if the default target triple isn't x86.
  • Loading branch information
MaskRay committed Jul 29, 2023
1 parent 2f372ae commit f7f65b6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions clang/test/Driver/miamcu-opt.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// REQUIRES: x86-registered-target
//
// RUN: %clang -miamcu -rtlib=platform -### %s 2>&1 | FileCheck %s
// RUN: %clang -miamcu -rtlib=platform -m32 -### %s 2>&1 | FileCheck %s
// RUN: %clang -miamcu -rtlib=platform --target=x86_64-unknown-linux-gnu -### %s 2>&1 | FileCheck %s
// RUN: %clang -mno-iamcu -miamcu -rtlib=platform -### %s 2>&1 | FileCheck %s
// RUN: %clang -miamcu -rtlib=platform -m64 -### %s 2>&1 | FileCheck %s -check-prefix=M64
// RUN: %clang -miamcu -rtlib=platform -dynamic -### %s 2>&1 | FileCheck %s -check-prefix=DYNAMIC
// RUN: %clang -miamcu -rtlib=platform --target=armv8-eabi -### %s 2>&1 | FileCheck %s -check-prefix=NOT-X86
// RUN: %clang -miamcu -mno-iamcu --target=x86_64-unknown-linux-gnu -### %s 2>&1 | FileCheck %s -check-prefix=MNOIAMCU
// RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform -m32 %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform --target=x86_64-unknown-linux-gnu %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=x86_64 -mno-iamcu -miamcu -rtlib=platform %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform -m64 %s 2>&1 | FileCheck %s -check-prefix=M64
// RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform -dynamic %s 2>&1 | FileCheck %s -check-prefix=DYNAMIC
// RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform --target=armv8-eabi %s 2>&1 | FileCheck %s -check-prefix=NOT-X86
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -miamcu -mno-iamcu %s 2>&1 | FileCheck %s -check-prefix=MNOIAMCU

// M64: error: invalid argument '-miamcu' not allowed with '-m64'

Expand Down

0 comments on commit f7f65b6

Please sign in to comment.