aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/odr/a.h
blob: 5a3f52409486ea577890016f9d1206ea319a8b80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
extern struct Y {
  int n;
  float f;
} y1;
enum E { e1 };

struct X {
  int n;
} x1;

template<typename T>
struct F {
  int n;
  friend bool operator==(const F &a, const F &b) { return a.n == b.n; }
};

int f() {
  return y1.n + e1 + y1.f + x1.n;
}