Commit 457c4a3f by Jonathan Wakely Committed by Jonathan Wakely

Use dg-do preprocess instead of compile for tests

	* testsuite/experimental/feat-cxx14.cc: Only preprocess, not compile.
	* testsuite/experimental/feat-lib-fund.cc: Likewise.

From-SVN: r239692
parent b405d54f
2016-08-23 Jonathan Wakely <jwakely@redhat.com> 2016-08-23 Jonathan Wakely <jwakely@redhat.com>
* testsuite/experimental/feat-cxx14.cc: Only preprocess, not compile.
* testsuite/experimental/feat-lib-fund.cc: Likewise.
PR libstdc++/71771 PR libstdc++/71771
* include/bits/stl_iterator.h * include/bits/stl_iterator.h
(operator-(reverse_iterator<Iter>, reverse_iterator<Iter>): Only (operator-(reverse_iterator<Iter>, reverse_iterator<Iter>): Only
......
// { dg-options "-std=gnu++14" } // { dg-do preprocess { target c++14 } }
// { dg-do compile }
#include <utility> #include <utility>
#include <tuple> #include <tuple>
......
// { dg-options "-std=gnu++14" } // { dg-do preprocess { target c++14 } }
// { dg-do compile }
#if !__has_include(<experimental/tuple>) #if !__has_include(<experimental/tuple>)
# error "<experimental/tuple>" # error "<experimental/tuple>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment