From fe2750db42c0ffb0fd1a44ddbd4591f4f0222a2c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 20 Oct 2011 21:42:12 +0000 Subject: 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 --- clang/test/SemaCXX/MicrosoftCompatibility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/SemaCXX/MicrosoftCompatibility.cpp') 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; -} \ No newline at end of file +} -- cgit v1.2.3