array: Add feature-test macro.

* include/experimental/array: Add feature-test macro.
	* testsuite/experimental/array/neg.cc: Update dg-error.

From-SVN: r226893
This commit is contained in:
Jonathan Wakely 2015-08-14 12:51:05 +01:00 committed by Jonathan Wakely
parent d8082c18c8
commit 357c9f7edc
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-08-14 Jonathan Wakely <jwakely@redhat.com>
* include/experimental/array: Add feature-test macro.
* testsuite/experimental/array/neg.cc: Update dg-error.
2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
* testsuite/experimental/array/neg.s: Remove.

View File

@ -47,6 +47,7 @@ inline namespace fundamentals_v2
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
#define __cpp_lib_experimental_make_array 201505
/**
* @defgroup make_array Array creation functions
* @ingroup experimental

View File

@ -24,5 +24,5 @@ int main()
{
int dummy;
auto bad = std::experimental::make_array(std::ref(dummy));
// { dg-error "make_array cannot be used without an explicit target type if any of the types given is a reference_wrapper" "" { target *-*-* } 76 }
// { dg-error "make_array cannot be used without an explicit target type if any of the types given is a reference_wrapper" "" { target *-*-* } 77 }
}