summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/bitfield4.C
blob: 7fae086b857e7695bdf846b4e3156d48583474cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/30274
// { dg-do link }

struct S {
  bool x : 4;
};

S s;

template <typename T>
void f(T);

template <>
void f(bool) {} 

int main() {
  f(s.x++); // { dg-warning "deprecated" }
  f(++s.x); // { dg-warning "deprecated" }
}