xref: /llvm-project/clang/test/CodeGenCXX/default-constructor-default-argument.cpp (revision c9bd88e6811fb622cde644a82eac41c0b02c00ee)
1*c9bd88e6SHans Wennborg // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
256acd1e8SEli Friedman 
356acd1e8SEli Friedman // Check that call to constructor for struct A is generated correctly.
456acd1e8SEli Friedman struct A { A(int x = 2); };
556acd1e8SEli Friedman struct B : public A {};
656acd1e8SEli Friedman B x;
756acd1e8SEli Friedman 
850ed1506SEli Friedman // CHECK: call {{.*}} @_ZN1AC2Ei
9