Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/decltype-bitfield2.C

raw
1 // PR c++/95009
2 // { dg-do compile { target c++11 } }
3
4 struct A {
5 int i:31;
6 };
7
8 template<typename>
9 void f ()
10 {
11 }
12
13 int main ()
14 {
15 A a;
16 f<decltype(a.i += 1)>();
17 f<decltype(++a.i)>();
18 }