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