Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C

raw
1 // PR c++/64462
2 // { dg-do compile { target c++11 } }
3
4 int x = 0;
5 int z;
6
7 int main() {
8 constexpr int& y = x;
9 // OK, 'y' is not ODR used
10 [] { z = y; }();
11 }