[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / test / CodeGenCXX / attr-annotate-destructor.cpp
blobdbe686b04861e4a61ba15c73478918c1fdb70ce3
1 // RUN: %clang_cc1 %s -S -emit-llvm -triple x86_64-unknown-linux-gnu -o - | FileCheck %s
3 // Test annotation attributes on destructors do not crash.
5 struct k {
6 ~k() __attribute__((annotate(""))) {}
7 };
8 void m() { k(); }
10 // CHECK: @llvm.global.annotations = appending global [2 x { ptr, ptr, ptr, i32, ptr }] [{