clang/test/CodeGenCXX/attr-annotate-destructor.cpp
raw| 1 | // RUN: %clang_cc1 %s -emit-llvm -triple x86_64-unknown-linux-gnu -o - | FileCheck %s |
| 2 | |
| 3 | // Test annotation attributes on destructors do not crash. |
| 4 | |
| 5 | struct k { |
| 6 | ~k() __attribute__((annotate(""))) {} |
| 7 | }; |
| 8 | void m() { k(); } |
| 9 | |
| 10 | // CHECK: @llvm.global.annotations = appending global [2 x { ptr, ptr, ptr, i32, ptr }] [{ |