[PATCH] D94327: [NFC] Specify C11 in loop-opt-setup.c

Matthew Voss via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 8 11:24:22 PST 2021


ormris created this revision.
ormris added a reviewer: atmnpatel.
ormris requested review of this revision.
Herald added a project: clang.

This test was failing in our internal CI, since our driver does not default to C11. Adding this switch fixes the issue.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94327

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,5 +1,5 @@
 // This tests loop unrolling and loop deletion (enabled under -O1)
-// RUN: %clang_cc1 -O1 -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
+// RUN: %clang_cc1 -std=c11 -O1 -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
 // RUN: %clang_cc1 -std=c99 -O1 -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s --check-prefix C99
 
 extern int a[16];


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94327.315465.patch
Type: text/x-patch
Size: 561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210108/e0037eb9/attachment.bin>


More information about the cfe-commits mailing list