Louis Dionne | 3c011e1 | 2018-09-14 14:07:16 +0000 | [diff] [blame] | 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 { }; }; |
| 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 { }; }; |
| 12 | B<int>::X<int>* b() { return 0; } // CHECK-DAG: @_Z1bB4BTAGv |