Update to gcc 12.2 and clang 15.0.0
[modules.git] / helloworld.cc
1 module;
2
3 export module helloworld;
4
5 import <string>;
6 import <iostream>;
7
8 export class HelloWorld {
9 public:
10     std::string hello() {
11         std::cout << "hello, ";
12         std::string s = "world!";
13         return s;
14     }
15 };