clang/test/SemaCXX
George Burgess IV 13ef8dfe58 Add tests for pass_object_size.
These additions were meant to go in as a part of r254554; while it's
certainly nice to have new functionality, it's nicer if we have tests to
go with it. :)



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254632 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-03 19:19:09 +00:00
..
Inputs
2008-01-11-BadWarning.cpp
MicrosoftCompatibility-cxx98.cpp
MicrosoftCompatibility.cpp
MicrosoftCompatibilityNoExceptions.cpp
MicrosoftExtensions.cpp
MicrosoftSuper.cpp
PR5086-ambig-resolution-enum.cpp
PR6562.cpp
PR6618.cpp
PR7410.cpp
PR7944.cpp
PR8012.cpp
PR8385.cpp
PR8755.cpp
PR8884.cpp
PR9459.cpp
PR9460.cpp
PR9461.cpp
PR9572.cpp
PR9884.cpp
PR9902.cpp
PR9908.cpp
PR10177.cpp
PR10243.cpp
PR10447.cpp
PR10458.cpp
PR11358.cpp
PR12481.cpp
PR12778.cpp
PR19955.cpp
PR20110.cpp
PR20705.cpp
PR21679.cpp
PR23334.cpp
__null.cpp
__try.cpp
abstract.cpp
access-base-class.cpp
access-control-check.cpp
access-member-pointer.cpp
access.cpp
accessible-base.cpp
addr-of-overloaded-function-casting.cpp
addr-of-overloaded-function.cpp
address-of-temporary.cpp
address-of.cpp
address-space-conversion.cpp
address-space-initialize.cpp
address-space-newdelete.cpp
address-space-references.cpp
aggregate-initialization.cpp
alias-template.cpp
align_value.cpp
alignment-of-derived-class.cpp
alignof-sizeof-reference.cpp
alignof.cpp
altivec.cpp
ambig-user-defined-conversions.cpp
ambiguous-builtin-unary-operator.cpp
ambiguous-conversion-show-overload.cpp
anonymous-struct.cpp
anonymous-union-cxx11.cpp
anonymous-union.cpp
array-bound-merge.cpp
array-bounds-ptr-arith.cpp
array-bounds-system-header.cpp
array-bounds.cpp
arrow-operator.cpp
ast-print.cpp
atomic-type.cpp
attr-after-definition.cpp
attr-aligned.cpp
attr-cleanup-gcc.cpp
attr-cleanup.cpp
attr-common.cpp
attr-cxx0x-fixit.cpp
attr-cxx0x.cpp
attr-declspec-ignored.cpp
attr-deprecated.cpp
attr-disable-tail-calls.cpp
attr-flag-enum-reject.cpp
attr-flatten.cpp
attr-format.cpp
attr-gnu.cpp
attr-no-sanitize-address.cpp
attr-no-sanitize-memory.cpp
attr-no-sanitize-thread.cpp
attr-no-sanitize.cpp
attr-no-split-stack.cpp
attr-nodebug.cpp
attr-nonnull.cpp
attr-noreturn.cpp
attr-notail.cpp
attr-optnone.cpp
attr-print.cpp
attr-regparm.cpp
attr-selectany.cpp
attr-sentinel.cpp
attr-unavailable.cpp
attr-unused.cpp
attr-used.cpp
attr-visibility.cpp
attr-weak.cpp
attr-weakref.cpp
attributed-auto-deduction.cpp
auto-cxx0x.cpp
auto-cxx98.cpp
auto-pragma.cpp
auto-subst-failure.cpp
auto-type-from-cxx.cpp
bitfield-layout.cpp
bitfield.cpp
block-call.cpp
blocks-1.cpp
blocks.cpp
bool-compare.cpp
bool.cpp
borland-extensions.cpp
builtin-assume-aligned-tmpl.cpp
builtin-assume-aligned.cpp
builtin-exception-spec.cpp
builtin-ptrtomember-ambig.cpp
builtin-ptrtomember-overload-1.cpp
builtin-ptrtomember-overload.cpp
builtin_objc_msgSend.cpp
builtins-arm.cpp
builtins-va_arg.cpp
builtins.cpp
c99-variable-length-array-cxx11.cpp
c99-variable-length-array.cpp
c99.cpp
call-with-static-chain.cpp
calling-conv-compat.cpp
captured-statements.cpp
cast-conversion.cpp
cast-explicit-ctor.cpp
cast-lvalue-to-rvalue-reference.cpp
cdtor-fn-try-block.cpp
class-base-member-init.cpp
class-layout.cpp
class-names.cpp
class.cpp
comma.cpp
compare.cpp
complex-folding.cpp
complex-init-list.cpp
complex-overload.cpp
composite-pointer-type.cpp
compound-literal.cpp
condition.cpp
conditional-expr.cpp
const-cast.cpp
constant-expression-cxx1y.cpp
constant-expression-cxx11.cpp
constant-expression.cpp
constexpr-ackermann.cpp
constexpr-backtrace-limit.cpp
constexpr-depth.cpp
constexpr-duffs-device.cpp
constexpr-factorial.cpp
constexpr-many-arguments.cpp
constexpr-nqueens.cpp
constexpr-printing.cpp
constexpr-steps.cpp
constexpr-strlen.cpp
constexpr-turing.cpp
constexpr-value-init.cpp
constructor-initializer.cpp
constructor-recovery.cpp
constructor.cpp
conversion-delete-expr.cpp
conversion-function.cpp
conversion-incomplete-type.cpp
conversion.cpp
convert-to-bool.cpp
converting-constructor.cpp
copy-assignment.cpp
copy-constructor-error.cpp
copy-initialization.cpp
coroutines.cpp
crash-lambda-12645424.cpp
crashes.cpp
cstyle-cast.cpp
cv-unqual-rvalues.cpp
cxx-altivec.cpp
cxx-deprecated.cpp
cxx-member-pointer-op.cpp
cxx0x-class.cpp
cxx0x-compat.cpp
cxx0x-constexpr-const.cpp
cxx0x-cursory-default-delete.cpp
cxx0x-defaulted-functions.cpp
cxx0x-delegating-ctors.cpp
cxx0x-deleted-default-ctor.cpp
cxx0x-initializer-aggregates.cpp
cxx0x-initializer-constructor.cpp
cxx0x-initializer-references.cpp
cxx0x-initializer-scalars.cpp
cxx0x-initializer-stdinitializerlist.cpp
cxx0x-noexcept-expression.cpp
cxx0x-nontrivial-union.cpp
cxx0x-return-init-list.cpp
cxx0x-type-convert-construct.cpp
cxx1y-constexpr-not-const.cpp
cxx1y-contextual-conversion-tweaks.cpp
cxx1y-deduced-return-type.cpp
cxx1y-generic-lambdas-capturing.cpp
cxx1y-generic-lambdas-variadics.cpp
cxx1y-generic-lambdas.cpp
cxx1y-init-captures.cpp
cxx1y-initializer-aggregates.cpp
cxx1y-sized-deallocation.cpp
cxx1y-user-defined-literals.cpp
cxx1y-variable-templates_in_class.cpp
cxx1y-variable-templates_top_level.cpp
cxx11-ast-print.cpp
cxx11-attr-print.cpp
cxx11-call-to-deleted-constructor.cpp
cxx11-crashes.cpp
cxx11-gnu-attrs.cpp
cxx11-inheriting-ctors.cpp
cxx11-thread-local-print.cpp
cxx11-thread-local.cpp
cxx11-thread-unsupported.cpp
cxx11-unused.cpp
cxx11-user-defined-literals-unused.cpp
cxx11-user-defined-literals.cpp
cxx98-compat-flags.cpp
cxx98-compat-pedantic.cpp
cxx98-compat.cpp
dcl_ambig_res.cpp
dcl_init_aggr.cpp
decl-expr-ambiguity.cpp
decl-init-ref.cpp
decl-microsoft-call-conv.cpp
declspec-thread.cpp
decltype-98.cpp
decltype-crash.cpp
decltype-overloaded-functions.cpp
decltype-pr4444.cpp
decltype-pr4448.cpp
decltype-this.cpp
decltype.cpp
default-argument-temporaries.cpp
default-assignment-operator.cpp
default-constructor-initializers.cpp
default1.cpp
default2.cpp
defaulted-ctor-loop.cpp
defaulted-private-dtor.cpp
delete-mismatch.h
delete.cpp
deleted-function-access.cpp
deleted-function.cpp
deleted-operator.cpp
dependent-auto.cpp
dependent-noexcept-unevaluated.cpp
dependent-types.cpp
deprecated.cpp
derived-to-base-ambig.cpp
destructor.cpp
devirtualize-vtable-marking.cpp
direct-initializer.cpp
discrim-union.cpp
dllexport-pr22591.cpp
dllexport.cpp
dllimport.cpp
do-while-scope.cpp
dr1301.cpp
dynamic-cast.cpp
elaborated-type-specifier.cpp
empty-class-layout.cpp
enable_if.cpp
enum-bitfield.cpp
enum-increment.cpp
enum-scoped.cpp
enum-unscoped-nonexistent.cpp
enum.cpp
err_init_conversion_failed.cpp
err_reference_bind_drops_quals.cpp
err_typecheck_assign_const.cpp
err_typecheck_assign_const_filecheck.cpp
exception-spec-no-exceptions.cpp
exception-spec.cpp
exceptions-seh.cpp
exceptions.cpp
explicit.cpp
expression-traits.cpp
expressions.cpp
extern-c.cpp
flexible-array-test.cpp
fntype-decl.cpp
for-range-dereference.cpp
for-range-examples.cpp
for-range-no-std.cpp
for-range-unused.cpp
format-strings-0x-nopedantic.cpp
format-strings-0x.cpp
format-strings.cpp
friend-class-nodecl.cpp
friend-out-of-line.cpp
friend.cpp
funcdname.cpp
function-extern-c.cpp
function-overload-typo-crash.cpp
function-overloaded-redecl.cpp
function-pointer-arguments.cpp
function-redecl.cpp
function-type-qual.cpp
functional-cast.cpp
generalized-deprecated.cpp
generic-selection.cpp
gnu-case-ranges.cpp
gnu-flags.cpp
goto.cpp
goto2.cpp
i-c-e-cxx.cpp
illegal-member-initialization.cpp
implicit-exception-spec.cpp
implicit-int.cpp
implicit-member-functions.cpp
implicit-virtual-member-functions.cpp
incomplete-call.cpp
increment-decrement.cpp
indirect-goto.cpp
inherit.cpp
init-priority-attr.cpp
inline.cpp
instantiate-blocks.cpp
integer-overflow.cpp
internal_linkage.cpp
invalid-instantiated-field-decl.cpp
invalid-member-expr.cpp
invalid-template-specifier.cpp
issue547.cpp
lambda-expressions.cpp
libstdcxx_atomic_ns_hack.cpp
libstdcxx_common_type_hack.cpp
libstdcxx_explicit_init_list_hack.cpp
libstdcxx_is_pod_hack.cpp
libstdcxx_map_base_hack.cpp
libstdcxx_pair_swap_hack.cpp
libstdcxx_pointer_return_false_hack.cpp
linkage-spec.cpp
linkage.cpp
linkage2.cpp
literal-operators.cpp
literal-type.cpp
local-classes.cpp
long-virtual-inheritance-chain.cpp
lookup-member.cpp
make_integer_seq.cpp
many-template-parameter-lists.cpp
member-class-11.cpp
member-expr-anonymous-union.cpp
member-expr-static.cpp
member-expr.cpp
member-init.cpp
member-location.cpp
member-name-lookup.cpp
member-operator-expr.cpp
member-pointer-ms.cpp
member-pointer-size.cpp
member-pointer.cpp
member-pointers-2.cpp
microsoft-cxx0x.cpp
microsoft-dtor-lookup-cxx11.cpp
microsoft-dtor-lookup.cpp
microsoft-new-delete.cpp
microsoft-super.cpp
microsoft-varargs-diagnostics.cpp
microsoft-varargs.cpp
missing-header.cpp
missing-members.cpp
missing-namespace-qualifier-typo-corrections.cpp
ms-exception-spec.cpp
ms-friend-lookup.cpp
ms-inline-asm.cpp
ms-interface.cpp
ms-novtable.cpp
ms-overload-entry-point.cpp
ms-property-error.cpp
ms-property.cpp
ms-unsupported.cpp
ms-wchar.cpp
ms_integer_suffix.cpp
ms_mutable_reference_member.cpp
ms_struct.cpp
ms_wide_bitfield.cpp
namespace-alias.cpp
namespace.cpp
neon-vector-types.cpp
nested-name-spec-locations.cpp
nested-name-spec.cpp
new-array-size-conv.cpp
new-delete-0x.cpp
new-delete-cxx0x.cpp
new-delete-predefined-decl-2.cpp
new-delete-predefined-decl.cpp
new-delete.cpp
new-null.cpp
no-exceptions.cpp
no-implicit-builtin-decls.cpp
no-rtti.cpp
no-warn-composite-pointer-type.cpp
no-warn-unused-const-variables.cpp
no-wchar.cpp
non-empty-class-size-zero.cpp
nonnull.cpp
ns_returns_retained_block_return.cpp
null_in_arithmetic_ops.cpp
nullability-declspec.cpp
nullability.cpp
nullptr-98.cpp
nullptr.cpp
nullptr_in_arithmetic_ops.cpp
offsetof-0x.cpp
offsetof.cpp
old-style-cast.cpp
openmp_default_simd_align.cpp
operator-arrow-depth.cpp
operator-arrow-temporary.cpp
out-of-line-def-mismatch.cpp
overload-0x.cpp
overload-call-copycon.cpp
overload-call.cpp
overload-decl.cpp
overload-member-call.cpp
overload-value-dep-arg.cpp
overloaded-builtin-operators-0x.cpp
overloaded-builtin-operators.cpp
overloaded-name.cpp
overloaded-operator-decl.cpp
overloaded-operator.cpp
override-in-system-header.cpp
parentheses.cpp
pascal-strings.cpp
pass-object-size.cpp
pr9812.cpp
pr13353.cpp
pr13394-crash-on-invalid.cpp
pr18284-crash-on-invalid.cpp
pragma-init_seg.cpp
pragma-optimize.cpp
pragma-pack.cpp
pragma-unused.cpp
pragma-visibility.cpp
pragma-vtordisp.cpp
pragma-weak.cpp
predefined-expr.cpp
prefetch-enum.cpp
primary-base.cpp
printf-block.cpp
printf-cstr.cpp
pseudo-destructors.cpp
ptrtomember-overload-resolution.cpp
ptrtomember.cpp
qual-id-test.cpp
qualification-conversion.cpp
qualified-id-lookup.cpp
qualified-member-enum.cpp
qualified-names-diag.cpp
redeclared-alias-template.cpp
redeclared-auto.cpp
redefine_extname.cpp
ref-init-ambiguous.cpp
references.cpp
reinterpret-cast.cpp
reinterpret-fn-obj-pedantic.cpp
return-noreturn.cpp
return-stack-addr.cpp
return.cpp
runtimediag-ppe.cpp
rval-references-examples.cpp
rval-references.cpp
scope-check.cpp
self-comparison.cpp
shift.cpp
short-enums.cpp
short-wchar-sign.cpp
sourceranges.cpp
statements.cpp
static-array-member.cpp
static-assert.cpp
static-cast-complete-type.cpp
static-cast.cpp
static-data-member.cpp
static-initializers.cpp
storage-class.cpp
string-init.cpp
string-plus-char.cpp
string-plus-int.cpp
struct-class-redecl.cpp
switch-0x.cpp
switch-implicit-fallthrough-blocks.cpp
switch-implicit-fallthrough-cxx98.cpp
switch-implicit-fallthrough-macro.cpp
switch-implicit-fallthrough-per-method.cpp
switch-implicit-fallthrough.cpp
switch.cpp
tag-ambig.cpp
template-implicit-vars.cpp
templated-friend-decl.cpp
this.cpp
thread-safety-reference-handling.cpp
trailing-return-0x.cpp
trivial-constructor.cpp
trivial-destructor.cpp
type-convert-construct.cpp
type-definition-in-specifier.cpp
type-dependent-exprs.cpp
type-formatting.cpp
type-traits-incomplete.cpp
type-traits.cpp
typedef-redecl.cpp
typeid-ref.cpp
typeid.cpp
types_compatible_p.cpp
typo-correction-blocks.c
typo-correction-cxx11.cpp
typo-correction-delayed.cpp
typo-correction.cpp
unary-real-imag.cpp
undefined-inline.cpp
undefined-internal.cpp
underlying_type.cpp
uninit-variables-conditional.cpp
uninit-variables.cpp
uninitialized.cpp
unknown-anytype-blocks.cpp
unknown-anytype.cpp
unknown-type-name.cpp
unreachable-catch-clauses.cpp
unreachable-code.cpp
unused-functions.cpp
unused-with-error.cpp
unused.cpp
user-defined-conversions.cpp
using-decl-1.cpp
using-decl-pr4441.cpp
using-decl-pr4450.cpp
using-decl-templates.cpp
using-directive.cpp
value-dependent-exprs.cpp
value-initialization.cpp
vararg-class.cpp
vararg-default-arg.cpp
vararg-non-pod.cpp
vector-casts.cpp
vector-no-lax.cpp
vector.cpp
virtual-base-used.cpp
virtual-function-in-union.cpp
virtual-member-functions-key-function.cpp
virtual-override-x64.cpp
virtual-override-x86.cpp
virtual-override.cpp
virtuals.cpp
visibility.cpp
vla.cpp
vtable-instantiation.cpp
vtordisp-mode.cpp
warn-absolute-value-header.cpp
warn-absolute-value.cpp
warn-address.cpp
warn-assignment-condition.cpp
warn-bad-memaccess.cpp
warn-bool-conversion.cpp
warn-c++11-extensions.cpp
warn-cast-align.cpp
warn-char-subscripts.cpp
warn-consumed-analysis.cpp
warn-consumed-parsing.cpp
warn-dangling-field.cpp
warn-deprecated-header.cpp
warn-div-or-rem-by-zero.cpp
warn-empty-body.cpp
warn-enum-compare.cpp
warn-everthing.cpp
warn-exit-time-destructors.cpp
warn-float-conversion.cpp
warn-func-not-needed.cpp
warn-global-constructors.cpp
warn-implicit-conversion-floating-point-to-bool.cpp
warn-infinite-recursion.cpp
warn-large-by-value-copy.cpp
warn-literal-conversion.cpp
warn-logical-not-compare.cpp
warn-loop-analysis.cpp
warn-member-not-needed.cpp
warn-memset-bad-sizeof.cpp
warn-memsize-comparison.cpp
warn-missing-noreturn.cpp
warn-missing-prototypes.cpp
warn-missing-variable-declarations.cpp
warn-new-overaligned-2.cpp
warn-new-overaligned-3.cpp
warn-new-overaligned.cpp
warn-overloaded-virtual.cpp
warn-pessmizing-move.cpp
warn-pure-virtual-call-from-ctor-dtor.cpp
warn-pure-virtual-kext.cpp
warn-range-loop-analysis.cpp
warn-redundant-move.cpp
warn-reinterpret-base-class.cpp
warn-reorder-ctor-initialization.cpp
warn-self-assign.cpp
warn-self-comparisons.cpp
warn-self-move.cpp
warn-shadow.cpp
warn-sign-conversion.cpp
warn-static-const-float.cpp
warn-static-function-inheader.cpp
warn-static-function-inheader.h
warn-string-conversion.cpp
warn-sysheader-macro.cpp
warn-tautological-compare.cpp
warn-tautological-undefined-compare.cpp
warn-thread-safety-analysis.cpp
warn-thread-safety-negative.cpp
warn-thread-safety-parsing.cpp
warn-thread-safety-verbose.cpp
warn-undefined-bool-conversion.cpp
warn-unreachable.cpp
warn-unsequenced.cpp
warn-unused-attribute.cpp
warn-unused-comparison.cpp
warn-unused-filescoped.cpp
warn-unused-label-error.cpp
warn-unused-local-typedef-serialize.cpp
warn-unused-local-typedef-x86asm.cpp
warn-unused-local-typedef.cpp
warn-unused-parameters.cpp
warn-unused-private-field-delayed-template.cpp
warn-unused-private-field.cpp
warn-unused-result.cpp
warn-unused-value-cxx11.cpp
warn-unused-value.cpp
warn-unused-variables-error.cpp
warn-unused-variables.cpp
warn-using-namespace-in-header.cpp
warn-variable-not-needed.cpp
warn-vla.cpp
warn-weak-vtables.cpp
wchar_t.cpp
windows-arm-valist.cpp
writable-strings-deprecated.cpp
zero-length-arrays.cpp