brintos

brintos / llvm-project-archived public Read only

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