From c24f0f9bd6f4261d3ebdb34cbf4634026be0f2dc Mon Sep 17 00:00:00 2001 From: dingfei Date: Tue, 18 Jul 2023 19:55:34 +0800 Subject: [PATCH] [NFC][clang-extdef-mapping] fix test failure on unsupported targets 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 --- clang/test/Tooling/ms-asm-clang-extdef-mapping.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang/test/Tooling/ms-asm-clang-extdef-mapping.c b/clang/test/Tooling/ms-asm-clang-extdef-mapping.c index 00632d1..ed71628 100644 --- a/clang/test/Tooling/ms-asm-clang-extdef-mapping.c +++ b/clang/test/Tooling/ms-asm-clang-extdef-mapping.c @@ -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}} -- 2.7.4