[cfe-commits] r86574 - /cfe/trunk/test/CodeGenCXX/default-constructor-default-argument.cpp

Eli Friedman eli.friedman at gmail.com
Mon Nov 9 12:49:10 CST 2009


Author: efriedma
Date: Mon Nov  9 12:49:09 2009
New Revision: 86574

URL: http://llvm.org/viewvc/llvm-project?rev=86574&view=rev
Log:
Add code generation test for r86500.


Added:
    cfe/trunk/test/CodeGenCXX/default-constructor-default-argument.cpp

Added: cfe/trunk/test/CodeGenCXX/default-constructor-default-argument.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/default-constructor-default-argument.cpp?rev=86574&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenCXX/default-constructor-default-argument.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/default-constructor-default-argument.cpp Mon Nov  9 12:49:09 2009
@@ -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




More information about the cfe-commits mailing list