bolt/deps/llvm-18.1.8/clang/test/CodeGenCXX/attr-annotate-destructor.cpp
2025-02-14 19:21:04 +01:00

10 lines
314 B
C++

// RUN: %clang_cc1 %s -S -emit-llvm -triple x86_64-unknown-linux-gnu -o - | FileCheck %s
// Test annotation attributes on destructors do not crash.
struct k {
~k() __attribute__((annotate(""))) {}
};
void m() { k(); }
// CHECK: @llvm.global.annotations = appending global [2 x { ptr, ptr, ptr, i32, ptr }] [{