diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-20 21:42:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-20 21:42:12 +0000 |
commit | fe2750db42c0ffb0fd1a44ddbd4591f4f0222a2c (patch) | |
tree | edf9e529cf0f0a2cd63a20b91dd3b865bb4d20f7 /clang/test/SemaCXX/MicrosoftCompatibility.cpp | |
parent | 3acac94b60c0822d7e0889ef4598cc64dda0e32a (diff) | |
download | bcm5719-llvm-fe2750db42c0ffb0fd1a44ddbd4591f4f0222a2c.tar.gz bcm5719-llvm-fe2750db42c0ffb0fd1a44ddbd4591f4f0222a2c.zip |
Add -Wc++98-compat diagnostics for jumps which bypass initialization of non-POD
but trivially constructible and destructible variables in C++11 mode. Also
incidentally improve the precision of the wording for jump diagnostics in C++98
mode.
llvm-svn: 142619
Diffstat (limited to 'clang/test/SemaCXX/MicrosoftCompatibility.cpp')
-rw-r--r-- | clang/test/SemaCXX/MicrosoftCompatibility.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/MicrosoftCompatibility.cpp b/clang/test/SemaCXX/MicrosoftCompatibility.cpp index dfc47d6fc95..1dadfec7002 100644 --- a/clang/test/SemaCXX/MicrosoftCompatibility.cpp +++ b/clang/test/SemaCXX/MicrosoftCompatibility.cpp @@ -35,7 +35,7 @@ struct Y { void jump_over_var_with_dtor() { goto end; // expected-warning{{goto into protected scope}} - Y y; // expected-note {{jump bypasses variable initialization}} + Y y; // expected-note {{jump bypasses variable with a non-trivial destructor}} end: ; } @@ -155,4 +155,4 @@ public: template class B<int>;
-}
\ No newline at end of file +} |