Skip to content

Commit

Permalink
[NFC][clang-extdef-mapping] fix test failure on unsupported targets
Browse files Browse the repository at this point in the history
ms-stlye asm block is not supported on targets like arm/hexagon.
Specify a working target as POC.

Introduced by https://reviews.llvm.org/D154983

Differential Revision: https://reviews.llvm.org/D155576
  • Loading branch information
danix800 committed Jul 18, 2023
1 parent 4a6b31b commit c24f0f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clang/test/Tooling/ms-asm-clang-extdef-mapping.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// RUN: clang-extdef-mapping "%s" -- -fasm-blocks 2>&1 | FileCheck %s
// RUN: clang-extdef-mapping "%s" -- -fasm-blocks \
// RUN: -target x86_64-apple-darwin10 2>&1 | FileCheck %s
// REQUIRES: x86-registered-target

void Break() {
__asm { int 3 }
}

// CHECK: {{c:@F@Break .*}}
// CHECK: {{10:c:@F@Break}}

0 comments on commit c24f0f9

Please sign in to comment.