mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

This fixes http://llvm.org/PR31054 Differential Revision: https://reviews.llvm.org/D28505 llvm-svn: 291576
13 lines
295 B
C++
13 lines
295 B
C++
// 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: }
|