| 1 |
// PR c++/113814 |
| 2 |
// { dg-additional-options "-fmodules-ts -fdump-lang-module-alias" } |
| 3 |
// { dg-module-cmi {} } |
| 4 |
|
| 5 |
#include "partial-6.h" |
| 6 |
import "partial-6_a.H"; |
| 7 |
|
| 8 |
template <typename, typename = void> |
| 9 |
struct TestTTP; |
| 10 |
|
| 11 |
inline void test() { |
| 12 |
int a = f<int>().a; |
| 13 |
int b = g<TestTTP>().b; |
| 14 |
} |
| 15 |
|
| 16 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s partial merge key \(new\) template_decl:'::template A'} module } } |
| 17 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s partial merge key \(new\) template_decl:'::template B'} module } } |
| 18 |
|
| 19 |
// Don't need to write the partial specialisations |
| 20 |
// { dg-final { scan-lang-dump-not {Wrote declaration entity:[0-9]* template_decl:'::template A<#null#>'} module } } |
| 21 |
// { dg-final { scan-lang-dump-not {Wrote declaration entity:[0-9]* template_decl:'::template B<template TT,int>'} module } } |