diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-17 08:42:25 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-17 08:42:25 +0000 |
commit | c83ed8248e6cb010b132ed541d8e19ab70acbb2d (patch) | |
tree | 02e64b87df33d5f2f41f12a85d085dea0045cdec /clang/test/SemaCXX/new-delete.cpp | |
parent | 8e7bfceb9896e9a241171ab96242ba5c7d5bbb33 (diff) | |
download | bcm5719-llvm-c83ed8248e6cb010b132ed541d8e19ab70acbb2d.tar.gz bcm5719-llvm-c83ed8248e6cb010b132ed541d8e19ab70acbb2d.zip |
Basic code generation support for std::initializer_list.
We now generate temporary arrays to back std::initializer_list objects
initialized with braces. The initializer_list is then made to point at
the array. We support both ptr+size and start+end forms, although
the latter is untested.
Array lifetime is correct for temporary std::initializer_lists (e.g.
call arguments) and local variables. It is untested for new expressions
and member initializers.
Things left to do:
Massively increase the amount of testing. I need to write tests for
start+end init lists, temporary objects created as a side effect of
initializing init list objects, new expressions, member initialization,
creation of temporary objects (e.g. std::vector) for initializer lists,
and probably more.
Get lifetime "right" for member initializers and new expressions. Not
that either are very useful.
Implement list-initialization of array new expressions.
llvm-svn: 150803
Diffstat (limited to 'clang/test/SemaCXX/new-delete.cpp')
0 files changed, 0 insertions, 0 deletions