diff options
Diffstat (limited to 'test/Modules/Inputs/odr_hash-Friend/Box.h')
-rw-r--r-- | test/Modules/Inputs/odr_hash-Friend/Box.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Modules/Inputs/odr_hash-Friend/Box.h b/test/Modules/Inputs/odr_hash-Friend/Box.h new file mode 100644 index 0000000000000..01ab90d601c2d --- /dev/null +++ b/test/Modules/Inputs/odr_hash-Friend/Box.h @@ -0,0 +1,14 @@ +template <class T> +struct iterator { + void Compare(const iterator &x) { } + friend void Check(iterator) {} +}; + +template <class T = int> struct Box { + iterator<T> I; + + void test() { + Check(I); + I.Compare(I); + } +}; |