xref: /aosp_15_r20/external/clang/test/SemaCXX/PR23334.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-unused
2*67e74705SXin Li 
3*67e74705SXin Li // This must be at the start of the file (the failure depends on a SmallPtrSet
4*67e74705SXin Li // not having been reallocated yet).
fn1()5*67e74705SXin Li void fn1() {
6*67e74705SXin Li   // expected-no-diagnostics
7*67e74705SXin Li   constexpr int kIsolationClass = 0;
8*67e74705SXin Li   const int kBytesPerConnection = 0;
9*67e74705SXin Li   [=] { kIsolationClass, kBytesPerConnection, kBytesPerConnection; };
10*67e74705SXin Li }
11