13 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s2 3// PR389134// Check that we instantiate attributes on declarations for...5 6// ...a member class of a class template specialization7template<class T> struct A { struct __attribute__((abi_tag("ATAG"))) X { }; };8A<int>::X* a() { return 0; } // CHECK-DAG: @_Z1aB4ATAGv9 10// ...a member class template11template<class T> struct B { template<class U> struct __attribute__((abi_tag("BTAG"))) X { }; };12B<int>::X<int>* b() { return 0; } // CHECK-DAG: @_Z1bB4BTAGv13