diff options
| author | ruki <[email protected]> | 2021-10-12 22:51:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-12 22:51:27 +0800 |
| commit | 1666e13096f40ce0cd6b1563a5bac4cc1dac5ccb (patch) | |
| tree | 3e0a1ac46103ed13b8e50a4394c166a71564cade /tests/projects/c++/modules/class/src/hello_impl.cpp | |
| parent | 2829b6248dc66799d1f21407bbe2ac1ddfec9d5c (diff) | |
| parent | 6d94f1182d93b04f854f90599e3878fd5826939e (diff) | |
Merge pull request #1740 from xmake-io/modules
Improve C++20 modules for clang/gcc/msvc
Diffstat (limited to 'tests/projects/c++/modules/class/src/hello_impl.cpp')
| -rw-r--r-- | tests/projects/c++/modules/class/src/hello_impl.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/projects/c++/modules/class/src/hello_impl.cpp b/tests/projects/c++/modules/class/src/hello_impl.cpp index 6d0008fbb..5dd555a7a 100644 --- a/tests/projects/c++/modules/class/src/hello_impl.cpp +++ b/tests/projects/c++/modules/class/src/hello_impl.cpp @@ -1,14 +1,13 @@ -module hello; - +module; #include <iostream> -using namespace std; +module hello; +using namespace std; namespace hello { say::say(int data) : data_(data) { } - void say::hello() { cout << "hello, say class: " << data_ << endl; } |
