gcc/testsuite/g++.dg/modules/operator-1_a.C
raw| 1 | // { dg-additional-options {-fmodules-ts -Wno-pedantic} } |
| 2 | |
| 3 | module; |
| 4 | # 5 __FILE__ 1 |
| 5 | |
| 6 | struct Type {}; |
| 7 | bool operator==(Type const &, Type const &); |
| 8 | |
| 9 | # 10 "" 2 |
| 10 | export module Foo; |
| 11 | // { dg-module-cmi Foo } |
| 12 | |
| 13 | export template<typename T> |
| 14 | bool equal (T const &x, T const &y) |
| 15 | { |
| 16 | return x == y; |
| 17 | } |
| 18 |