gcc/testsuite/g++.dg/modules/init-6_a.H
raw| 1 | // { dg-additional-options "-fmodule-header" } |
| 2 | // { dg-module-cmi {} } |
| 3 | |
| 4 | template <bool _DecOnly> |
| 5 | struct __from_chars_alnum_to_val_table { |
| 6 | static inline int value = 42; |
| 7 | }; |
| 8 | |
| 9 | inline unsigned char |
| 10 | __from_chars_alnum_to_val() { |
| 11 | return __from_chars_alnum_to_val_table<false>::value; |
| 12 | } |
| 13 | |
| 14 | template <bool Foo> |
| 15 | static inline int nonclass_value = 42; |
| 16 | |
| 17 | inline unsigned char |
| 18 | get_nonclass_val() { |
| 19 | return nonclass_value<false>; |
| 20 | } |