gcc/testsuite/g++.dg/modules/pr99377-3_a.H
raw| 1 | // { dg-additional-options "-fmodule-header" } |
| 2 | // { dg-module-cmi {} } |
| 3 | |
| 4 | template<typename> |
| 5 | struct Widget |
| 6 | { |
| 7 | Widget (int) { } |
| 8 | |
| 9 | bool First() const { return true; } |
| 10 | |
| 11 | bool Second () const { return true;} |
| 12 | }; |
| 13 | |
| 14 | inline void Frob (const Widget<int>& w) noexcept |
| 15 | { |
| 16 | w.First (); |
| 17 | } |