brintos

brintos / llvm-project-archived public Read only

0
0
Text · 301 B · 2444d1e Raw
13 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s2 3struct A { ~A(); };4void func() {5  return;6  static A k;7}8 9// Test that we did not crash, by checking whether function was created.10// CHECK-LABEL: define{{.*}} void @_Z4funcv() #0 {11// CHECK: ret void12// CHECK: }13