c++: visibility wrt template and ptrmem targs [PR70413]
[official-gcc.git] / gcc / testsuite / g++.dg / template / linkage4.C
blob03630eebd3d76307fd324f19802cb17fd690b680
1 // PR c++/107906
2 // { dg-do compile { target c++11 } }
3 // { dg-final { scan-assembler-not "(weak|glob)\[^\n\]*_Z" { xfail *-*-* } } }
5 namespace {
6   template<class> using X = int;
7   struct A {
8     template<class> using X = int;
9   };
11 template<template<class> class Q> void f() { }
13 int main() {
14   f<X>();
15   f<A::X>();