☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
modules
/
using-16_c.C
☽
☼
gcc/testsuite/g++.dg/modules/using-16_c.C
code
plain
raw
1
// { dg-additional-options "-fmodules-ts" }
2
import M;
3
4
int main() {
5
// this should be hidden and fail
6
foo::f(foo::S{}); // { dg-error "cannot convert" }
7
8
// but these should be legal
9
foo::f(10);
10
f(foo::S{});
11
}