diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 18:49:09 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 18:49:09 +0000 |
commit | d49c7b61d9d5682565524e845bd8d0dc90294e45 (patch) | |
tree | 19785c502144df20b1642c968ed5d2e48a553f09 /test/CodeGenCXX/default-constructor-default-argument.cpp | |
parent | 8875334f783d046afd9aa8cb7bf54390f70476e4 (diff) |
Add code generation test for r86500.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/default-constructor-default-argument.cpp')
-rw-r--r-- | test/CodeGenCXX/default-constructor-default-argument.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/default-constructor-default-argument.cpp b/test/CodeGenCXX/default-constructor-default-argument.cpp new file mode 100644 index 0000000000..f53732e471 --- /dev/null +++ b/test/CodeGenCXX/default-constructor-default-argument.cpp @@ -0,0 +1,8 @@ +// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s + +// 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 |