[PATCH] D155576: [NFC][clang-extdef-mapping] fix test failure on nonsupported targets

Ding Fei via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 18 04:03:12 PDT 2023


danix800 created this revision.
Herald added a project: All.
danix800 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Specify a working target as POC


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155576

Files:
  clang/test/Tooling/ms-asm-clang-extdef-mapping.c


Index: clang/test/Tooling/ms-asm-clang-extdef-mapping.c
===================================================================
--- clang/test/Tooling/ms-asm-clang-extdef-mapping.c
+++ 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 at Break .*}}
+// CHECK: {{10:c:@F at Break}}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155576.541437.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230718/6e74e6e3/attachment.bin>


More information about the cfe-commits mailing list