Debian Codegraph @

gcc/testsuite/g++.dg/modules/class-9_c.C

raw
1 // { dg-additional-options "-fmodules-ts -fmodule-lazy" }
2
3 import "class-9_a.H";
4 import "class-9_b.H";
5
6 int main() {
7 // Lazy loading should still find the definitions of A and B.
8 int a = foo()->a;
9 int b = bar<int>()->b;
10 }