public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] libstdc++: Disable PCH for test that depends on a macro being defined
@ 2021-09-23 15:10 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-09-23 15:10 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

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.

Tested x86_64-linux. Committed to trunk.


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1164 bytes --]

commit 8fa90926e08950cc00d0e22eace27402b9f9fa57
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Sep 22 14:11:54 2021

    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.

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 c54c9a3022d..6aca63d4db3 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.
 //

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-23 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 15:10 [committed] libstdc++: Disable PCH for test that depends on a macro being defined Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).