1 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s |
---|---|
2 | |
3 | struct A { ~A(); }; |
4 | void 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 |