summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const10.C
blob: 3112f08f5c207632e6dc9cbdb8dfe51dead91135 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/88613
// { dg-do compile { target c++11 } }
// { dg-additional-options -Wtautological-compare }

void a() {
  const int b = 5;
  [=] {
    if (b != 5)
      ;
  }();
}