aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-09-22 14:11:54 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-09-23 16:07:39 +0100
commit8fa90926e08950cc00d0e22eace27402b9f9fa57 (patch)
treed71682fe4aa661960be64c9ed9699b23a45e2d9e
parent477897451e46d67acb46f3ac45585e6eb9e7dde5 (diff)
downloadgcc-8fa90926e08950cc00d0e22eace27402b9f9fa57.zip
gcc-8fa90926e08950cc00d0e22eace27402b9f9fa57.tar.gz
gcc-8fa90926e08950cc00d0e22eace27402b9f9fa57.tar.bz2
libstdc++: Disable PCH for test that depends on a macro being defined
This test tries to ensure that <system_error> can be included after defining _XOPEN_SOURCE=600, which doesn't test anything if that header is already included via the <bits/stdc++.h> PCH before the macro definition. Disable PCH so that it behaves as intended. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * testsuite/19_diagnostics/headers/system_error/93151.cc: Disable PCH.
-rw-r--r--libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc
index c54c9a3..6aca63d 100644
--- a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc
+++ b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc
@@ -1,4 +1,5 @@
// { dg-do compile { target c++11 } }
+// { dg-add-options no_pch }
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
//