[clang] Fix armv7-quick build by hardcoding -triple=x86_64 in OOM test.
authorAdam Czachorowski <adamcz@google.com>
Wed, 10 Nov 2021 18:16:42 +0000 (19:16 +0100)
committerAdam Czachorowski <adamcz@google.com>
Wed, 10 Nov 2021 18:24:06 +0000 (19:24 +0100)
The test was added in 48bb5f4cbe8d5951c1153e469dc6713a122b7fa3 and it
creates a very large array, which is too large for ARM. Making the array
smaller is not a good option, since we would need a very low ulimit and
could then hit it for other reasons.

Should fix the https://lab.llvm.org/buildbot/#/builders/171/builds/5851
failure.

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

clang/test/SemaCXX/PR51712-large-array-constexpr-check-oom.cpp

index 4504c0caed55fae1ac1e7d883ab9aa5f86076950..1bbc1b5c863c002b958832495b8738795a4880a7 100644 (file)
@@ -1,7 +1,7 @@
 // REQUIRES: shell
 // UNSUPPORTED: win32
 // RUN: ulimit -v 1048576
-// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -triple=x86_64 %s
 // expected-no-diagnostics
 
 // This used to require too much memory and crash with OOM.