Commit cc38d9d6 by Jakub Jelinek Committed by Jakub Jelinek

asan_test.C: Remove -Wno-format, add -Wno-c++1z-compat.

	* g++.dg/asan/asan_test.C: Remove -Wno-format, add
	-Wno-c++1z-compat.
	* g++.dg/asan/dejagnu-gtest.h (EXPECT_TRUE): Use "%s" format
	string in case condition contains % characters.

From-SVN: r242027
parent 0391e4a3
2016-11-09 Jakub Jelinek <jakub@redhat.com> 2016-11-09 Jakub Jelinek <jakub@redhat.com>
* g++.dg/asan/asan_test.C: Remove -Wno-format, add
-Wno-c++1z-compat.
* g++.dg/asan/dejagnu-gtest.h (EXPECT_TRUE): Use "%s" format
string in case condition contains % characters.
PR c++/78283 PR c++/78283
* g++.dg/cpp1z/noexcept-type13.C: New test. * g++.dg/cpp1z/noexcept-type13.C: New test.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } // { dg-skip-if "" { *-*-* } { "*" } { "-O2" } }
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } } // { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
// { dg-additional-sources "asan_globals_test-wrapper.cc" } // { dg-additional-sources "asan_globals_test-wrapper.cc" }
// { dg-options "-std=c++11 -fsanitize=address -fno-builtin -Wall -Wno-format -Werror -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DSANITIZER_USE_DEJAGNU_GTEST=1 -lasan -lpthread -ldl" } // { dg-options "-std=c++11 -fsanitize=address -fno-builtin -Wall -Wno-c++1z-compat -Werror -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DSANITIZER_USE_DEJAGNU_GTEST=1 -lasan -lpthread -ldl" }
// { dg-additional-options "-DASAN_NEEDS_SEGV=1" { target { ! arm*-*-* } } } // { dg-additional-options "-DASAN_NEEDS_SEGV=1" { target { ! arm*-*-* } } }
// { dg-additional-options "-DASAN_LOW_MEMORY=1 -DASAN_NEEDS_SEGV=0" { target arm*-*-* } } // { dg-additional-options "-DASAN_LOW_MEMORY=1 -DASAN_NEEDS_SEGV=0" { target arm*-*-* } }
// { dg-additional-options "-DASAN_AVOID_EXPENSIVE_TESTS=1" { target { ! run_expensive_tests } } } // { dg-additional-options "-DASAN_AVOID_EXPENSIVE_TESTS=1" { target { ! run_expensive_tests } } }
......
...@@ -68,7 +68,8 @@ while (0) ...@@ -68,7 +68,8 @@ while (0)
#define EXPECT_TRUE(condition) \ #define EXPECT_TRUE(condition) \
if (!(condition)) \ if (!(condition)) \
{ \ { \
fprintf (stderr, "EXPECT_TRUE failed: " #condition "\n"); \ fprintf (stderr, "%s", \
"EXPECT_TRUE failed: " #condition "\n"); \
exit (1); \ exit (1); \
} }
#define EXPECT_FALSE(condition) EXPECT_TRUE (!condition) #define EXPECT_FALSE(condition) EXPECT_TRUE (!condition)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment