llvm-project/clang/test/CodeGenCXX
Eli Friedman 5866fe306d Fix for PR5967: Make const-marking for LLVM globals correct for cases requiring
run-time initialization, and emit run-time initializers aggresively to avoid
ordering issues with deferred globals.

llvm-svn: 92976
2010-01-08 00:50:11 +00:00
..
PR4827-cast.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR4890-debug-info-dtor.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR4983-constructor-conversion.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR5050-constructor-conversion.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
PR5093-static-member-function.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR5834-constructor-conversion.cpp When converting from a type to itself or one of its base classes via a 2009-12-22 00:21:20 +00:00
__null.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
address-of-fntemplate.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
anonymous-namespaces.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
anonymous-union-member-initializer.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
array-construction.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
array-operator-delete-call.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
array-pointer-decay.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
array-value-initialize.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
assign-operator.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr.cpp Fix for PR5967: Make const-marking for LLVM globals correct for cases requiring 2010-01-08 00:50:11 +00:00
call-arg-zero-temp.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
cast-conversion.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
casts.cpp Make sure that reinterpret_cast gets a CastKind on all successful 2009-12-22 22:47:22 +00:00
class-layout.cpp Baby steps towards fixing PR5589. If a class needs a vtable pointer, add one. 2009-12-16 17:27:20 +00:00
condition.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
conditional-expr-lvalue.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
conditional-temporaries.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
const-base-cast.cpp Fix runline. 2009-12-27 05:59:41 +00:00
const-global-linkage.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
const-init.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
constructor-conversion.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
constructor-convert.cpp Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
constructor-default-arg.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
constructor-for-array-members.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
constructor-init-reference.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
constructor-init.cpp Switch more of Sema::CheckInitializerTypes over to 2009-12-19 03:01:41 +00:00
constructor-template.cpp Correctly pass VTT parameters to constructors and destructors. The VTTs aren't yet used in the ctors/dtors, but that will follow. 2010-01-02 01:01:18 +00:00
conversion-function.cpp It's perfectly fine to see UserDefinedConversion casts when emitting scalar expressions. 2009-12-18 14:42:03 +00:00
conversion-operator-base.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
convert-to-fptr.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
copy-assign-synthesis-1.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
copy-assign-synthesis-2.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
copy-assign-synthesis-3.cpp Improve coverage for test. 2010-01-03 01:20:41 +00:00
copy-assign-synthesis.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
copy-constructor-elim-2.cpp Make copy constructor elimination work in more cases; the case in question 2009-12-24 23:33:34 +00:00
copy-constructor-elim.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
copy-constructor-synthesis-2.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
copy-constructor-synthesis.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
debug-info.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
decl-ref-init.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
default-arg-temps.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
default-arguments.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
default-constructor-default-argument.cpp Correctly pass VTT parameters to constructors and destructors. The VTTs aren't yet used in the ctors/dtors, but that will follow. 2010-01-02 01:01:18 +00:00
default-constructor-for-members.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
default-constructor-template-member.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
default-destructor-synthesis.cpp Fix for PR5967: Make const-marking for LLVM globals correct for cases requiring 2010-01-08 00:50:11 +00:00
deferred-global-init.cpp Fix for PR5967: Make const-marking for LLVM globals correct for cases requiring 2010-01-08 00:50:11 +00:00
delete-two-arg.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
delete.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
derived-to-base-conv.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
derived-to-base.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
destructor-calls.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
destructors.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
devirtualize-virtual-function-calls.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
dynamic-cast.cpp Fix regression I introduced when dynamic_cast-ing to a reference type. 2009-12-18 14:55:04 +00:00
dyncast.cpp Use GetAddrOfRTTI everywhere and remove GenerateRTTI and GenerateRTTIRef. With this change, we can now compile and link TableGen. 2009-12-16 07:05:41 +00:00
eh.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
elide-call-reference.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
empty-union.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
enum.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
eval-recursive-constant.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
exceptions.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
explicit-instantiation.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
expr.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
extern-c.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
function-template-explicit-specialization.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
function-template-specialization.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
global-array-destruction.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
global-init.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
global-llvm-constant.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
implicit-instantiation-1.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
init-incomplete-type.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
inline-functions.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
instantiate-init-list.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
key-function-vtable.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle-extern-local.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle-extreme.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle-subst-std.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle-subst.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle-system-header.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle-template.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle-unnamed.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
mangle.cpp fix PR5869: mangle static symbols like gcc does to make it easier to diff symbol tables 2010-01-07 09:36:51 +00:00
member-call-parens.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-expressions.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-function-pointers.cpp When emitting member function pointers, use the canonical decl if the member function is virtual. Fixes PR5940. 2010-01-05 05:04:05 +00:00
member-functions.cpp Make sure that we mangle overloaded operators that are member functions correctly, giving them the correct arity. 2009-12-22 06:36:32 +00:00
member-init-struct.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-init-union.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-pointer-cast.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-pointer-type-convert.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-pointers-zero-init.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-templates.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
namespace-aliases.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
nested-base-member-access.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
new-operator-phi.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
new-with-default-arg.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
new.cpp implement PR5654: add -fassume-sane-operator-new, which is enabled by default, and adds the malloc attribute to the global function new() and to the overloaded new operators. 2009-12-16 16:59:22 +00:00
nullptr.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
operator-new.cpp revert part of my last patch, and mark only the c++ global new operator as noalias. the rest will be infered by llvm optz 2009-12-17 10:15:49 +00:00
overload-binop-implicitconvert.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
predefined-expr-sizeof.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
predefined-expr.cpp Fix for PR5871. Make __PRETTY_FUNCTION__ work for member functions defined in a class local to a function. 2009-12-28 03:19:38 +00:00
ptr-to-datamember.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
ptr-to-member-function.cpp Testcase fixes to reflect instruction table changes in the LLVM backend 2009-12-18 00:04:09 +00:00
reference-bind-default-argument.cpp Fix for PR5524: make reference binding in default argument work correctly. 2009-12-19 00:20:10 +00:00
reference-field.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
reference-init.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
references.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
reinterpret-cast.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
rtti-layout.cpp Fix a bunch of bugs with VMI RTTI building, and add a whole bunch of tests. 2009-12-30 23:47:56 +00:00
rtti-linkage.cpp If the key function of a record is inline, then the RTTI data should have weak_odr linkage. 2009-12-31 19:36:25 +00:00
static-assert.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
static-data-member.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
static-init-1.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
static-init-2.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
static-init.cpp implement PR5654: add -fassume-sane-operator-new, which is enabled by default, and adds the malloc attribute to the global function new() and to the overloaded new operators. 2009-12-16 16:59:22 +00:00
static-member-variable-explicit-specialization.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
temp-order.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
template-anonymous-union-member-initializer.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
template-linkage.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
temporaries.cpp When transforming CXXExprWithTemporaries and CXXBindTemporaryExpr 2009-12-24 18:51:59 +00:00
throw-expressions.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
trivial-constructor-init.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
try-catch.cpp There is no such thing as typeinfo for a cv-qualified type. Assert 2009-12-23 22:04:40 +00:00
typeinfo Fix members to be public. 2009-11-16 19:48:50 +00:00
unary-type-trait.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
value-init.cpp Fix test case to unbreak testing 2009-12-16 19:18:40 +00:00
vararg-conversion-ctor.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virt-call-offsets.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virt-canonical-decl.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virt-dtor-gen.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virt-dtor-key.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virt-template-vtable.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virt-thunk-reference.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virt.cpp Baby steps towards fixing PR5589. If a class needs a vtable pointer, add one. 2009-12-16 17:27:20 +00:00
virtual-base-cast.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-base-ctor.cpp Test for r91724. 2009-12-18 23:42:55 +00:00
virtual-base-destructor-call.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-bases.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-destructor-calls.cpp Correctly pass VTT parameters to constructors and destructors. The VTTs aren't yet used in the ctors/dtors, but that will follow. 2010-01-02 01:01:18 +00:00
virtual-destructor-synthesis.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-function-calls.cpp Correctly initialize the PrimaryBaseInfo if a base is null. Fixes PR5832. 2009-12-19 02:13:41 +00:00
virtual-functions-incomplete-types.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-implicit-copy-assignment.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-inherited-destructor.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-operator-call.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
virtual-pseudo-destructor-call.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
vtable-cast-crash.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
vtable-key-function.cpp Improve key-function computation for templates. In particular: 2010-01-05 19:06:31 +00:00
vtable-linkage.cpp Fix for PR5967: Make const-marking for LLVM globals correct for cases requiring 2010-01-08 00:50:11 +00:00
x86_64-arguments.cpp x86_64: Structures with no fields but which have padding should be classified as 2009-12-22 01:19:25 +00:00