llvm-project/clang/test/CodeGenCXX/attr-annotate-destructor.cpp
Fangrui Song c5de4dd1ea [test] %clang_cc1 -emit-llvm: remove redundant -S
And replace -emit-llvm -o - with -emit-llvm-only
2024-05-04 17:00:29 -07:00

11 lines
311 B
C++

// RUN: %clang_cc1 %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 }] [{