projects
/
modules.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update to gcc 12.2 and clang 15.0.0
[modules.git]
/
main.cc
1
import helloworld;
2
3
#ifdef __clang__
4
import std;
5
#else // not yet in GCC 12.2 :-(
6
import <string>;
7
import <iostream>;
8
#endif
9
10
int main() {
11
helloworld:HelloWorld h;
12
std::string s = h.hello();
13
std::cout << s << '\n';
14
return 0;
15
}