summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/PR23334.cpp
blob: cd6b4f4551fd64875fb71c8f99083e2ad427fd27 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-unused

// This must be at the start of the file (the failure depends on a SmallPtrSet
// not having been reallocated yet).
void fn1() {
  // expected-no-diagnostics
  constexpr int kIsolationClass = 0;
  const int kBytesPerConnection = 0;
  [=] { kIsolationClass, kBytesPerConnection, kBytesPerConnection; };
}
OpenPOWER on IntegriCloud