OSDN Git Service

2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / expr / bitfield4.C
1 // PR c++/30274
2 // { dg-do link }
3
4 struct S {
5   bool x : 4;
6 };
7
8 S s;
9
10 template <typename T>
11 void f(T);
12
13 template <>
14 void f(bool) {} 
15
16 int main() {
17   f(s.x++);
18   f(++s.x);
19 }