diff options
author | John McCall <rjmccall@apple.com> | 2010-09-15 10:14:12 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-15 10:14:12 +0000 |
commit | 7a626f63f7091212a1d2f941c8bee5f482223bfa (patch) | |
tree | 80a6ae297730f708626a2b8e004fb5585eb0166a /clang/test/SemaCXX/warn-global-constructors.cpp | |
parent | d88d759a74f1b79cdd45b27f5c1c56cf2d0a472e (diff) | |
download | bcm5719-llvm-7a626f63f7091212a1d2f941c8bee5f482223bfa.tar.gz bcm5719-llvm-7a626f63f7091212a1d2f941c8bee5f482223bfa.zip |
one piece of code is responsible for the lifetime of every aggregate
slot. The easiest way to do that was to bundle up the information
we care about for aggregate slots into a new structure which demands
that its creators at least consider the question.
I could probably be convinced that the ObjC 'needs GC' bit should
be rolled into this structure.
Implement generalized copy elision. The main obstacle here is that
IR-generation must be much more careful about making sure that exactly
llvm-svn: 113962
Diffstat (limited to 'clang/test/SemaCXX/warn-global-constructors.cpp')
-rw-r--r-- | clang/test/SemaCXX/warn-global-constructors.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/warn-global-constructors.cpp b/clang/test/SemaCXX/warn-global-constructors.cpp index e14117eaf3b..0391f5ba3d1 100644 --- a/clang/test/SemaCXX/warn-global-constructors.cpp +++ b/clang/test/SemaCXX/warn-global-constructors.cpp @@ -25,8 +25,8 @@ namespace test1 { A e = A(A()); A f = A(a); // expected-warning {{global constructor}} A g(a); // expected-warning {{global constructor}} - A h((A())); // expected-warning {{global constructor}} - A i((A(A()))); // expected-warning {{global constructor}} + A h((A())); // elided + A i((A(A()))); // elided } namespace test2 { |