Clang Project

clang_source_code/test/CodeGenCXX/pr31054.cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
2
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 void
12// CHECK: }
13