summaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/odr/b.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/Inputs/odr/b.h')
-rw-r--r--test/Modules/Inputs/odr/b.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Modules/Inputs/odr/b.h b/test/Modules/Inputs/odr/b.h
index b4063979474f6..a4a693df2bf1c 100644
--- a/test/Modules/Inputs/odr/b.h
+++ b/test/Modules/Inputs/odr/b.h
@@ -4,6 +4,12 @@ struct Y {
} y2;
enum E { e2 };
+template<typename T>
+struct F {
+ int n;
+ friend bool operator==(const F &a, const F &b) { return a.n == b.n; }
+};
+
int g() {
- return y2.m + e2 + y2.f;
+ return y2.m + e2 + y2.f + (F<int>{0} == F<int>{1});
}