blob: 8b6e43fd8ec03244e6ce1b331513352c8be45e48 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2
3struct A {
4 virtual ~A();
5};
6
7struct B : A { };
8
9struct C {
10 int i;
11 B b;
12};
13
14// CHECK: _Z15test_value_initv
15void test_value_init() {
16 // This value initialization requires zero initialization of the 'B'
17 // subobject followed by a call to its constructor.
18 // PR5800
19
20 // CHECK: store i32 17
21 // CHECK: call void @llvm.memset.i64
22 // CHECK: call void @_ZN1BC1Ev
23 C c = { 17 } ;
24 // CHECK: call void @_ZN1CD1Ev
25}