Home
last modified time | relevance | path

Searched refs:stack_array (Results 1 – 1 of 1) sorted by relevance

/llvm-project/clang/test/SemaCXX/
H A Dcxx2a-constexpr-dynalloc-limits.cpp77 constexpr int stack_array() { in stack_array() function
82 int a = stack_array<~0U>();
83 int c = stack_array<1024>();
84 int d = stack_array<1025>();
85 constexpr int e = stack_array<1024>();
86 constexpr int f = stack_array<1025>(); // expected-error {{constexpr variable 'f' must be initializ…
89 int bar[stack_array<1024>()]; in ohno()
90 …int foo[stack_array<1025>()]; // expected-warning {{variable length arrays in C++ are a Clang exte… in ohno()
93 …constexpr int foo[stack_array<1025>()]; // expected-warning {{variable length arrays in C++ are a … in ohno()