llvm-for-llvmta/tools/clang/test/CodeGenCXX/pr31054.cpp

13 lines
301 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
struct A { ~A(); };
void func() {
return;
static A k;
}
// Test that we did not crash, by checking whether function was created.
// CHECK-LABEL: define{{.*}} void @_Z4funcv() #0 {
// CHECK: ret void
// CHECK: }