summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/readability-static-accessed-through-instance.cpp
blob: 95f13b994cb78124ad2f58aed0191c8726d8a25d (plain)
1
2
3
4
5
6
7
8
9
10
11
struct C {
  static int x;
};

int C::x = 0;

// Expressions with side effects
C &f(int, int, int, int);
void g() {
  f(1, 2, 3, 4).x;
}