[PATCH] Fix invalid dg-do directive
Jonathan Wakely
jwakely@redhat.com
Wed Aug 17 20:00:00 GMT 2016
This dg-do compile was being ignored due to a missing space, so we
were running a test that was meant to be compile-only. I've also taken
the opportunity to make it use an effective target of c++11.
* testsuite/20_util/reference_wrapper/invoke-2.cc: Fix invalid dg-do
directive and use effective target instead of dg-options.
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
commit 73d3f1bbdd8f1235fddaf5b374cb3a2fd5662e40
Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Aug 17 19:58:44 2016 +0000
Fix invalid dg-do directive
* testsuite/20_util/reference_wrapper/invoke-2.cc: Fix invalid dg-do
directive and use effective target instead of dg-options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239548 138bc75d-0d04-0410-961f-82ee72b054a4
diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc
index 89b81ac..85803ba 100644
--- a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc
+++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++11" }
-// { dg-do compile}
+// { dg-do compile { target c++11 } }
// Copyright (C) 2011-2016 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
More information about the Libstdc++
mailing list