summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/pr31054.cpp
blob: 33b17b9eafc89a135647073b2eb4c062b2fb0c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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: }