[NFC] Specify C11 in loop-opt-setup.c
authorMatthew Voss <matthew.voss@sony.com>
Fri, 8 Jan 2021 18:29:30 +0000 (10:29 -0800)
committerMatthew Voss <matthew.voss@sony.com>
Fri, 8 Jan 2021 20:15:26 +0000 (12:15 -0800)
This test was failing in our internal CI, since our driver does not default to
C11. Adding this switch fixes the issue.

Differential Revision: https://reviews.llvm.org/D94327

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

index e9a9c1e..63a6972 100644 (file)
@@ -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];