hanchenye-llvm-project/clang/test/CodeGenCXX
Anders Carlsson 3c9beab48a Handle references correctly when synthesizing copy constructors.
With this change, the clang-on-clang test result is now

Expected Passes    : 224
Unexpected Failures: 37

Which means that we can compile over 80% of clang with clang! :)

llvm-svn: 89799
2009-11-24 21:08:10 +00:00
..
PR4827-cast.cpp Use the correct cast kinds for bit casts and function to pointer decay. Fixes PR4827. 2009-09-01 20:52:42 +00:00
PR4890-debug-info-dtor.cpp Pass the GlobalDecl to getMangledName, fixes PR4890. 2009-09-11 00:11:35 +00:00
PR4983-constructor-conversion.cpp Add back the workaround since it lead to constructor conversion bugs :( 2009-09-15 21:14:33 +00:00
PR5050-constructor-conversion.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
PR5093-static-member-function.cpp Handle CXXMemberCallExprs that point to a static method. Fixes PR5093. 2009-09-29 03:54:11 +00:00
__null.cpp Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
address-of-fntemplate.cpp Change FixOverloadedFunctionReference to return a (possibly new) expression. Substitute TemplateIdRefExprs with DeclRefExprs. Doug, plz review :) 2009-10-21 17:16:23 +00:00
anonymous-namespaces.cpp Anonymous namespaces, sema + codegen. A lot of semantics are still broken, 2009-10-01 00:25:31 +00:00
anonymous-union-member-initializer.cpp Fix an assertion when initializing a union using a member initializer. (We weren't casting from the union type to the initializer type correctly). 2009-09-02 21:14:47 +00:00
array-construction.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
array-operator-delete-call.cpp Code gen. For virtual destructor call on array objects 2009-11-13 22:29:45 +00:00
array-pointer-decay.cpp Use CastExpr::CK_ArrayToPointerDecay and fix an assert. 2009-08-08 21:04:35 +00:00
array-value-initialize.cpp Value initialize non-class array members in ctor's 2009-11-11 17:55:25 +00:00
assign-operator.cpp Make sure isCopyAssignment is only true for actual copy assignment operators, 2009-11-07 00:02:45 +00:00
attr.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
call-arg-zero-temp.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
cast-conversion.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
casts.cpp Set the cast kind to CK_NoOp for C-style casts that are really const casts. Fixes PR5248. 2009-10-19 18:14:28 +00:00
class-layout.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
condition.cpp Explicitly store the condition variable within switch statements, and 2009-11-24 17:07:59 +00:00
conditional-expr-lvalue.cpp Add test case. 2009-09-15 16:36:17 +00:00
conditional-temporaries.cpp Fix lifetime of conditional temporaries. Patch by Victor Zverovich! 2009-11-20 17:27:56 +00:00
const-init.cpp Support emitting aggregate class initializers. Fixes PR5581. 2009-11-21 23:56:04 +00:00
constructor-conversion.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
constructor-default-arg.cpp Undo previous test fix. -split-phi-edges now disables automatically when the 2009-11-17 19:18:32 +00:00
constructor-for-array-members.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
constructor-init-reference.cpp Make IRGen for initializing a member reference work correctly. 2009-08-29 20:58:20 +00:00
constructor-init.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
constructor-template.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
conversion-function.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
convert-to-fptr.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
copy-assign-synthesis-1.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
copy-assign-synthesis.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
copy-constructor-elim.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
copy-constructor-synthesis.cpp Handle references correctly when synthesizing copy constructors. 2009-11-24 21:08:10 +00:00
debug-info.cpp Canonicalize the type before trying to create a debug type. 2009-11-14 21:08:12 +00:00
decl-ref-init.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
default-arg-temps.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
default-arguments.cpp Handle cases where we're constructing an array of objects and the constructor has default arguments. 2009-11-24 18:43:52 +00:00
default-constructor-default-argument.cpp Add code generation test for r86500. 2009-11-09 18:49:09 +00:00
default-constructor-for-members.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
default-destructor-synthesis.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
delete-two-arg.cpp Fix spelling for target triplet. 2009-11-16 18:06:39 +00:00
delete.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
derived-to-base-conv.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
derived-to-base.cpp Handle CK_DerivedToBase when emitting lvalue casts. 2009-09-12 16:16:49 +00:00
destructor-calls.cpp Emit the destructor epilogue in a cleanup block so a return from a destructor body still calls the epilogue. 2009-10-06 18:09:57 +00:00
destructors.cpp Unify the way destructor epilogues are generated for synthesized and regular destructors. Also fix PR5529. 2009-11-17 04:44:12 +00:00
devirtualize-virtual-function-calls.cpp Even more devirtualization cleverness. 2009-10-12 19:59:15 +00:00
dyncast.cpp Fixup key function calculations. 2009-11-20 00:02:19 +00:00
eh.cpp Add testcases for recent checkins. 2009-11-20 18:51:28 +00:00
empty-union.cpp Prevent a code gen. crash on empty unions - pr5408. 2009-11-06 20:47:40 +00:00
explicit-instantiation.cpp Fix spelling for target triplet. 2009-11-16 18:06:39 +00:00
expr.cpp Fix PR5211: codegen shouldn't assume that the result of ||/&& is int 2009-10-17 04:24:20 +00:00
extern-c.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
function-template-specialization.cpp Substitute unscoped template names. 2009-09-17 04:02:31 +00:00
global-array-destruction.cpp This patch implements Code gen. for destruction of 2009-11-10 19:24:06 +00:00
global-init.cpp If a global initializer has a non-trivial constructor or destructor, we never want to defer generation of it, even if it is declared static. 2009-10-08 17:28:59 +00:00
implicit-instantiation-1.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
init-incomplete-type.cpp Fix for PR5489: don't skip the complete type requrirement for variable 2009-11-14 03:40:14 +00:00
instantiate-init-list.cpp Add hack to make the given testcase work. As far as I can tell, this change is 2009-11-09 03:59:26 +00:00
mangle-extreme.cpp Substitution for prefixes. 2009-09-17 04:16:28 +00:00
mangle-subst-std.cpp Mangle std::basic_ostream<char, std::char_traits<char>> as So. 2009-10-08 17:20:26 +00:00
mangle-subst.cpp When looking up and adding substitutions to the substitution table, make sure to always use the canonical declaration. With tihs change, FileCheck compiles and links but crashes during startup. 2009-11-07 04:26:04 +00:00
mangle-system-header.cpp Always mangle functions with special names. Fixes PR5420. 2009-11-07 07:15:03 +00:00
mangle-template.cpp Mangler: Sketch mangling for TemplateArgument::Declaration kind. 2009-11-21 09:17:15 +00:00
mangle.cpp Handle ParenExprs in mangleExpression. 2009-11-06 02:50:19 +00:00
member-expressions.cpp We always need to emit the base expression of a member expression, even when the member decl refers to an enum. Thanks to Eli for pointing this out! 2009-11-24 16:57:33 +00:00
member-function-pointers.cpp Convert the && and || operands to bool using standard conversions. Fixes PR5593. 2009-11-23 21:47:44 +00:00
member-functions.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
member-init-struct.cpp Fix up EmitMemberInitializer to handle many more cases. 2009-11-16 23:53:01 +00:00
member-init-union.cpp Make member initializers for union members work correctly. 2009-11-16 22:58:01 +00:00
member-pointers-zero-init.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
member-templates.cpp Fix a crash when "instantiating" VarDecls that are neither type nor value dependent. 2009-11-24 16:52:50 +00:00
namespace-aliases.cpp Handle namespace aliases. 2009-09-23 19:19:16 +00:00
nested-base-member-access.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
new-operator-phi.cpp Make test more platform independent. 2009-11-11 22:49:09 +00:00
new-with-default-arg.cpp Patch to implement new-operators with default args. 2009-11-19 18:39:40 +00:00
new.cpp Fix the test case failed in buildbot. 2009-11-24 19:37:10 +00:00
nullptr.cpp Codegen support for nullptr from C++0x. 2009-09-15 04:39:46 +00:00
overload-binop-implicitconvert.cpp Move C++ test over to CodeGenCXX, since it requires CodeGen to reproduce 2009-09-01 15:39:05 +00:00
predefined-expr-sizeof.cpp Add test for dependent PredefinedExprs. 2009-09-11 18:49:46 +00:00
predefined-expr.cpp Speed up testing by avoiding stdio.h, also helps testing on windows. 2009-10-08 23:05:06 +00:00
ptr-to-datamember.cpp Store the unresolved class type in MemberPointerType's Class field, 2009-11-04 16:49:01 +00:00
ptr-to-member-function.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
reference-field.cpp Some small fixes for fields of reference type. 2009-05-30 21:09:44 +00:00
references.cpp Intercept sizeof and alignof references before they get into ASTContext methods. This fixes a crash when writing sizeof(Incomplete&), and lets ASTContext's methods do the right thing for CodeGen, which fixes PR5590. 2009-11-23 17:18:46 +00:00
reinterpret-cast.cpp Handle CK_BitCast in EmitCastLValue. 2009-11-14 21:21:42 +00:00
rtti.cpp Be sure to set visibility for ZTI symbols for classes from the class. 2009-11-18 03:21:29 +00:00
static-assert.cpp Don't assert when generating code with static_asserts. 2009-06-11 21:22:55 +00:00
static-data-member.cpp Fix a crash when referencing static data members. 2009-09-02 21:01:21 +00:00
static-init-1.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
static-init-2.cpp Avoid assert-crash in a case where the expression passed to EmitConstantExpr 2009-11-14 08:51:33 +00:00
static-init.cpp Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
template-anonymous-union-member-initializer.cpp Fix a codegen crash when a class template has a constructor that does member initialization of an anonymous union. 2009-09-02 19:17:55 +00:00
temporaries.cpp Don't bind arguments to temporaries if the argument has a reference type. 2009-11-13 17:04:35 +00:00
trivial-constructor-init.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
typeinfo Fix members to be public. 2009-11-16 19:48:50 +00:00
vararg-conversion-ctor.cpp Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
virt-dtor-gen.cpp Fix a couple of tests. 2009-11-14 04:23:25 +00:00
virt.cpp Fixup key function calculations. 2009-11-20 00:02:19 +00:00
virtual-base-cast.cpp Uncomment some commented out code. 2009-10-06 23:02:00 +00:00
virtual-function-calls.cpp Fix test. 2009-10-12 20:06:34 +00:00
virtual-functions-incomplete-types.cpp It is common for vtables to contain pointers to functions that have either incomplete return types or incomplete argument types. 2009-11-24 05:08:52 +00:00
virtual-operator-call.cpp Fix a couple of cases where we weren't generating the right kind of call 2009-11-16 05:31:29 +00:00
virtual-pseudo-destructor-call.cpp Fix a couple of cases where we weren't generating the right kind of call 2009-11-16 05:31:29 +00:00
vtable-cast-crash.cpp Fix a crash when generating vtables that contain destructors. 2009-09-12 00:00:29 +00:00
x86_64-arguments.cpp x86_64, PR5582: Layout bases for C++ records. 2009-11-22 23:01:23 +00:00