brintos

brintos / llvm-project-archived public Read only

0
0
Text · 271 B · 82d2738 Raw
14 lines · cpp
1// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -std=c++17 -verify %s2// RUN: %clang_cc1 -std=c++17 -verify=ref %s3 4// ref-no-diagnostics5// expected-no-diagnostics6 7void used_to_crash() {8  int s[2][2];9 10  int arr[4];11 12  arr[0] = [s] { return s[0][0]; }();13}14