diff options
| author | ruki <[email protected]> | 2021-10-10 23:03:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-10 23:03:20 +0800 |
| commit | 2a231e4654c2569c347e27351a28ea6c4e95cf0c (patch) | |
| tree | 7b5a30bd80268bc71f6b9bd5e707a93bdbb2b905 /tests/projects/c++/modules/inline_and_template | |
| parent | f7d079c1a5eef8d875b25e383132e6c114b7e48a (diff) | |
fix module tests
Diffstat (limited to 'tests/projects/c++/modules/inline_and_template')
| -rw-r--r-- | tests/projects/c++/modules/inline_and_template/src/hello.mpp | 6 | ||||
| -rw-r--r-- | tests/projects/c++/modules/inline_and_template/src/say.mpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/projects/c++/modules/inline_and_template/src/hello.mpp b/tests/projects/c++/modules/inline_and_template/src/hello.mpp index c36d54783..94d40ddaa 100644 --- a/tests/projects/c++/modules/inline_and_template/src/hello.mpp +++ b/tests/projects/c++/modules/inline_and_template/src/hello.mpp @@ -1,9 +1,9 @@ -export module hello; - +module; #include <cstdio> +export module hello; export namespace hello { inline void say_hello() { std::printf("hello world!\n"); } -}
\ No newline at end of file +} diff --git a/tests/projects/c++/modules/inline_and_template/src/say.mpp b/tests/projects/c++/modules/inline_and_template/src/say.mpp index b4d05a5f4..ab3290cf9 100644 --- a/tests/projects/c++/modules/inline_and_template/src/say.mpp +++ b/tests/projects/c++/modules/inline_and_template/src/say.mpp @@ -1,11 +1,11 @@ -export module say; - +module; #include <cstdio> +export module say; export class say { public: template <int N> void hello() { std::printf("hello, say class: %d\n", N); } -};
\ No newline at end of file +}; |
