Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-decltype4.C

raw
1 // PR c++/83167
2 // { dg-do compile { target c++11 } }
3
4 int main() {
5 int x;
6 const int y = 42;
7
8 [] {
9 using ty1 = decltype((x));
10 using ty1 = int&;
11
12 using ty2 = decltype((y));
13 using ty2 = const int&;
14 };
15 }