Debian Codegraph @

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

raw
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" } }
4
5 template<class> using X = int;
6 struct A {
7 template<class> using X = int;
8 };
9 template<template<class> class Q> void f() { }
10
11 int main() {
12 f<X>();
13 f<A::X>();
14 }