Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / annotate-type.cpp
blob456888b1ecd9752342de6efb47e042de7798236f
1 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -emit-llvm -o - | FileCheck %s
3 // Test that `annotate_type` does not affect mangled names.
5 int *[[clang::annotate_type("foo")]] f(int *[[clang::annotate_type("foo")]],
6 int [[clang::annotate_type("foo")]]) {
7 return nullptr;
9 // CHECK: @_Z1fPii
11 template <class T> struct S {};
13 S<int *[[clang::annotate_type("foo")]]>
14 g(S<int *[[clang::annotate_type("foo")]]>) {
15 return {};
17 // CHECK: @_Z1g1SIPiE