blob: 456888b1ecd9752342de6efb47e042de7798236f [file] [log] [blame]
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -emit-llvm -o - | FileCheck %s
// Test that `annotate_type` does not affect mangled names.
int *[[clang::annotate_type("foo")]] f(int *[[clang::annotate_type("foo")]],
int [[clang::annotate_type("foo")]]) {
return nullptr;
}
// CHECK: @_Z1fPii
template <class T> struct S {};
S<int *[[clang::annotate_type("foo")]]>
g(S<int *[[clang::annotate_type("foo")]]>) {
return {};
}
// CHECK: @_Z1g1SIPiE