Debian Codegraph @

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

raw
1 // Only run this test where ulimit is known to work well.
2 // (There's nothing really platform-specific being tested, this is just ulimit).
3 //
4 // REQUIRES: system-linux
5 // UNSUPPORTED: msan
6 // UNSUPPORTED: asan
7 // UNSUPPORTED: hwasan
8 //
9 // RUN: ulimit -v 1048576
10 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -triple=x86_64 %s
11 // expected-no-diagnostics
12
13 // This used to require too much memory and crash with OOM.
14 struct {
15 int a, b, c, d;
16 } arr[1<<30];
17