llvm-for-llvmta/tools/clang/test/Modules/Inputs/odr/a.h

20 lines
250 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
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;
}