Debian Codegraph @

gcc/testsuite/g++.dg/modules/tdef-4_c.C

raw
1 // { dg-additional-options -fmodules-ts }
2
3 import foo;
4 struct pthread_attr_t obj2;
5 pthread_attr_t obj1; // OK -- we see the implicit typedef
6
7 bob obj4;
8 // the structure tag is not exported. We find the typedef-name, which
9 // is ill-formed
10 struct bob obj5; // { dg-error "using typedef-name" }