Debian Codegraph @

gcc/testsuite/g++.dg/modules/pr118582_a.H

raw
1 // PR c++/118582
2 // { dg-additional-options "-fmodule-header -fno-module-lazy -std=c++20" }
3 // { dg-module-cmi {} }
4
5 template <typename> struct I;
6
7 template <typename T>
8 requires (!requires { T::x; })
9 struct I<T> {
10 using type = int;
11 };
12
13 template <typename>
14 struct R {
15 friend void f();
16 };