X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=main.cc;h=03bce8213a7d369334eb8488f6e75f229c4ec422;hb=775fd02ef24727639399d2664561d9c550cdafa8;hp=9221a3526e26d7f9b468c2a5fbf87a0a34cda42e;hpb=888f532312c70f907519e0f40f1311b93bdb7870;p=modules.git diff --git a/main.cc b/main.cc index 9221a35..03bce82 100644 --- a/main.cc +++ b/main.cc @@ -1,13 +1,15 @@ -//#include - import helloworld; -//import ; -int main() { - //std::string s = "foo"; +#ifdef __clang__ + import std; +#else // not yet in GCC 12.2 :-( + import ; + import ; +#endif +int main() { helloworld:HelloWorld h; - h.hello(); - + std::string s = h.hello(); + std::cout << s << '\n'; return 0; }