1 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -emit-llvm -o - | FileCheck %s
2 
3 // Test that `annotate_type` does not affect mangled names.
4 
5 int *[[clang::annotate_type("foo")]] f(int *[[clang::annotate_type("foo")]],
6                                        int [[clang::annotate_type("foo")]]) {
7   return nullptr;
8 }
9 // CHECK: @_Z1fPii
10 
11 template <class T> struct S {};
12 
13 S<int *[[clang::annotate_type("foo")]]>
14 g(S<int *[[clang::annotate_type("foo")]]>) {
15   return {};
16 }
17 // CHECK: @_Z1g1SIPiE
18