| 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: shell |
| 5 |
// REQUIRES: system-linux |
| 6 |
// UNSUPPORTED: msan |
| 7 |
// UNSUPPORTED: asan |
| 8 |
// UNSUPPORTED: hwasan |
| 9 |
// |
| 10 |
// RUN: ulimit -v 1048576 |
| 11 |
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -triple=x86_64 %s |
| 12 |
// expected-no-diagnostics |
| 13 |
|
| 14 |
// This used to require too much memory and crash with OOM. |
| 15 |
struct { |
| 16 |
int a, b, c, d; |
| 17 |
} arr[1<<30]; |
| 18 |
|