gcc/testsuite/g++.dg/modules/late-ret-2_b.H
raw| 1 | // { dg-additional-options -fmodule-header } |
| 2 | // { dg-module-cmi {} } |
| 3 | |
| 4 | template<typename T> struct TPL {operator T () const {return 0;}}; |
| 5 | |
| 6 | template<typename T> |
| 7 | auto Foo (T *arg) |
| 8 | -> TPL<decltype (+*arg)> {return TPL<int> ();} |
| 9 | |
| 10 | // Deliberately different to 2_a's Bar |
| 11 | template<typename T> |
| 12 | auto Bar (T *arg) |
| 13 | -> TPL<decltype (*arg)> ; |