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