aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/modules/tpl-friend-14_d.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/modules/tpl-friend-14_d.C')
-rw-r--r--gcc/testsuite/g++.dg/modules/tpl-friend-14_d.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/modules/tpl-friend-14_d.C b/gcc/testsuite/g++.dg/modules/tpl-friend-14_d.C
new file mode 100644
index 00000000000..7a842586b62
--- /dev/null
+++ b/gcc/testsuite/g++.dg/modules/tpl-friend-14_d.C
@@ -0,0 +1,9 @@
+// { dg-additional-options "-fmodules-ts" }
+
+import X;
+import Y;
+
+int main() {
+ A<long> a;
+ B<int>::type r = 10;
+}