mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-11-28 04:59:57 +08:00
6f0d67b912
This test detects redefinitions by compiling stdc++.h and <version>, by disabling the system_header pragma on the latter, to allow warnings in it. Thanks Patrick Palka for the suggestion. libstdc++-v3/ChangeLog: * testsuite/17_intro/versionconflict.cc: New test. * include/std/version: Allow disabling the system_header pragma via _GLIBCXX_TESTING_SYSHDR.
8 lines
195 B
C++
8 lines
195 B
C++
// { dg-do preprocess }
|
|
// { dg-additional-options "-Werror" }
|
|
|
|
// Test for redefinitions of FTMs using bits/stdc++.h.
|
|
#define _GLIBCXX_TESTING_SYSHDR
|
|
#include <bits/stdc++.h>
|
|
#include <version>
|