1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
2 
3 // PR38913
4 // Check that we instantiate attributes on declarations for...
5 
6 // ...a member class of a class template specialization
7 template<class T> struct A { struct __attribute__((abi_tag("ATAG"))) X { }; };
a()8 A<int>::X* a() { return 0; } // CHECK-DAG: @_Z1aB4ATAGv
9 
10 // ...a member class template
11 template<class T> struct B { template<class U> struct __attribute__((abi_tag("BTAG"))) X { }; };
b()12 B<int>::X<int>* b() { return 0; } // CHECK-DAG: @_Z1bB4BTAGv
13