aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/odr/a.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/Inputs/odr/a.h')
-rw-r--r--test/Modules/Inputs/odr/a.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Modules/Inputs/odr/a.h b/test/Modules/Inputs/odr/a.h
index 26144b86e8d1..5a3f52409486 100644
--- a/test/Modules/Inputs/odr/a.h
+++ b/test/Modules/Inputs/odr/a.h
@@ -8,6 +8,12 @@ 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;
}