[PATCH] D124210: Revert "[clang][safestack] Remove triple from stack usage test"

Paul Kirth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 21 15:48:13 PDT 2022


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb8786413d800: Revert "[clang][safestack] Remove triple from stack usage test" (authored by paulkirth).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124210/new/

https://reviews.llvm.org/D124210

Files:
  clang/test/Frontend/stack-usage-safestack.c


Index: clang/test/Frontend/stack-usage-safestack.c
===================================================================
--- clang/test/Frontend/stack-usage-safestack.c
+++ clang/test/Frontend/stack-usage-safestack.c
@@ -1,10 +1,12 @@
 /// Check that stack frame size warnings behave the same when safe stack is enabled
 
-// RUN: %clang_cc1 %s -fwarn-stack-size=48 -S -o - 2>&1 | FileCheck --check-prefix=REGULAR %s
-// RUN: %clang_cc1 %s -fwarn-stack-size=1060 -S -o - 2>&1 | FileCheck --check-prefix=IGNORE %s
+// REQUIRES: x86-registered-target
 
-// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=48 -S -o - 2>&1 | FileCheck --check-prefix=SAFESTACK %s
-// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=1060 -S -o - 2>&1 | FileCheck --check-prefix=IGNORE %s
+// RUN: %clang_cc1 %s -fwarn-stack-size=48 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=REGULAR %s
+// RUN: %clang_cc1 %s -fwarn-stack-size=1060 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=IGNORE %s
+
+// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=48 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=SAFESTACK %s
+// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=1060 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=IGNORE %s
 
 extern void init(char *buf, int size);
 extern int use_buf(char *buf, int size);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124210.424320.patch
Type: text/x-patch
Size: 1404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220421/01c5c590/attachment-0001.bin>


More information about the cfe-commits mailing list