[PATCH] D93952: [Clang][Misc] Fix fragile test

Atmn Patel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 31 10:33:18 PST 2020


atmnpatel updated this revision to Diff 314195.
atmnpatel added a comment.

Better?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93952

Files:
  clang/test/Misc/loop-opt-setup.c


Index: clang/test/Misc/loop-opt-setup.c
===================================================================
--- clang/test/Misc/loop-opt-setup.c
+++ clang/test/Misc/loop-opt-setup.c
@@ -1,4 +1,5 @@
-// RUN: %clang -O1 -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
+// This relies on %clang_cc1, %clang does not emit the block names in Release mode.
+// RUN: %clang_cc1 -O1 -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
 
 extern int a[16];
 int b = 0;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93952.314195.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201231/19683143/attachment.bin>


More information about the cfe-commits mailing list