Debian Codegraph @

gcc/testsuite/g++.dg/modules/using-16_c.C

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 }