1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
3 // Check that PR17480 is fixed: __attribute__((used)) ignored in templated
5 namespace InstantiateUsedMemberDefinition
{
8 int __attribute__((used
)) f() {
14 // Check that InstantiateUsedMemberDefinition::S<int>::f() is defined
15 // as a result of the S class template implicit instantiation
16 // CHECK: define linkonce_odr noundef i32 @_ZN31InstantiateUsedMemberDefinition1SIiE1fEv
19 } // namespace InstantiateUsedMemberDefinition