summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/annotate-type.cpp
blob: 456888b1ecd9752342de6efb47e042de7798236f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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