Debian Codegraph @

gcc/testsuite/g++.dg/template/linkage4.C

raw
1 // PR c++/107906
2 // { dg-do compile { target c++11 } }
3 // { dg-final { scan-assembler-not "(weak|glob)\[^\n\]*_Z" { xfail *-*-* } } }
4
5 namespace {
6 template<class> using X = int;
7 struct A {
8 template<class> using X = int;
9 };
10 }
11 template<template<class> class Q> void f() { }
12
13 int main() {
14 f<X>();
15 f<A::X>();
16 }