2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
2009-11-10 02:49:09 +08:00
|
|
|
|
|
|
|
// Check that call to constructor for struct A is generated correctly.
|
|
|
|
struct A { A(int x = 2); };
|
|
|
|
struct B : public A {};
|
|
|
|
B x;
|
|
|
|
|
|
|
|
// CHECK: call void @_ZN1AC1Ei
|