Debian Codegraph @

gcc/testsuite/g++.dg/modules/hello-1_a.C

raw
1 // { dg-module-do run }
2 // { dg-additional-options -fmodules-ts }
3 // { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
4
5 module;
6 #include <iostream>
7 #include <string_view>
8 export module hello;
9 // { dg-module-cmi hello }
10 export void greeter (std::string_view const &name)
11 {
12 std::cout << "Hello " << name << "!\n";
13 }