]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Disable PCH for test that depends on a macro being defined
authorJonathan Wakely <jwakely@redhat.com>
Wed, 22 Sep 2021 13:11:54 +0000 (14:11 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 23 Sep 2021 15:07:39 +0000 (16:07 +0100)
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.

libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc

index c54c9a3022df9e7f825444199bb4edadd33bc7c4..6aca63d4db32e96a1f5d7bcb4450f5cb49e26ffb 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2020-2021 Free Software Foundation, Inc.
 //