[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / PR38913.cpp
blob698de8c84411e7e527397e8b1d16f3b00f502010
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
3 // PR38913
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