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
This commit is contained in:
parent
0391e4a3b3
commit
cc38d9d60f
@ -1,5 +1,10 @@
|
||||
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
|
||||
* g++.dg/cpp1z/noexcept-type13.C: New test.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// { dg-skip-if "" { *-*-* } { "*" } { "-O2" } }
|
||||
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
|
||||
// { 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_LOW_MEMORY=1 -DASAN_NEEDS_SEGV=0" { target arm*-*-* } }
|
||||
// { dg-additional-options "-DASAN_AVOID_EXPENSIVE_TESTS=1" { target { ! run_expensive_tests } } }
|
||||
|
@ -68,7 +68,8 @@ while (0)
|
||||
#define EXPECT_TRUE(condition) \
|
||||
if (!(condition)) \
|
||||
{ \
|
||||
fprintf (stderr, "EXPECT_TRUE failed: " #condition "\n"); \
|
||||
fprintf (stderr, "%s", \
|
||||
"EXPECT_TRUE failed: " #condition "\n"); \
|
||||
exit (1); \
|
||||
}
|
||||
#define EXPECT_FALSE(condition) EXPECT_TRUE (!condition)
|
||||
|
Loading…
Reference in New Issue
Block a user