public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, c++ testsuite]: Fix UNRESOLVED: g++.dg/cpp1z/constexpr-lambda6.C testsuite failure
@ 2016-08-11 19:03 Uros Bizjak
  2016-08-11 21:26 ` Jason Merrill
  0 siblings, 1 reply; 3+ messages in thread
From: Uros Bizjak @ 2016-08-11 19:03 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jason Merrill

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

The compilation, where error is expected, will not produce an executable.

2016-08-11  Uros Bizjak  <ubizjak@gmail.com>

    * g++.dg/cpp1z/constexpr-lambda6.C (dg-do run): Remove.
    (g): Rename from main.

Tested on x86_64-linux-gnu.

OK for mainline?

Uros.

[-- Attachment #2: t.diff.txt --]
[-- Type: text/plain, Size: 490 bytes --]

Index: g++.dg/cpp1z/constexpr-lambda6.C
===================================================================
--- g++.dg/cpp1z/constexpr-lambda6.C	(revision 239384)
+++ g++.dg/cpp1z/constexpr-lambda6.C	(working copy)
@@ -1,5 +1,4 @@
 // Testcase from P0170R1
-// { dg-do run }
 // { dg-options -std=c++1z }
 
 auto monoid = [](auto v) { return [=] { return v; }; };
@@ -14,7 +13,7 @@
   };
 };
 
-int main()
+void g()
 {
   constexpr auto zero = monoid(0);
   constexpr auto one = monoid(1);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, c++ testsuite]: Fix UNRESOLVED: g++.dg/cpp1z/constexpr-lambda6.C testsuite failure
  2016-08-11 19:03 [PATCH, c++ testsuite]: Fix UNRESOLVED: g++.dg/cpp1z/constexpr-lambda6.C testsuite failure Uros Bizjak
@ 2016-08-11 21:26 ` Jason Merrill
  2016-08-11 21:32   ` Uros Bizjak
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Merrill @ 2016-08-11 21:26 UTC (permalink / raw)
  To: Uros Bizjak; +Cc: gcc-patches

There's no need to rename main, but removing the dg-do is OK.

On Thu, Aug 11, 2016 at 3:03 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> The compilation, where error is expected, will not produce an executable.
>
> 2016-08-11  Uros Bizjak  <ubizjak@gmail.com>
>
>     * g++.dg/cpp1z/constexpr-lambda6.C (dg-do run): Remove.
>     (g): Rename from main.
>
> Tested on x86_64-linux-gnu.
>
> OK for mainline?
>
> Uros.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, c++ testsuite]: Fix UNRESOLVED: g++.dg/cpp1z/constexpr-lambda6.C testsuite failure
  2016-08-11 21:26 ` Jason Merrill
@ 2016-08-11 21:32   ` Uros Bizjak
  0 siblings, 0 replies; 3+ messages in thread
From: Uros Bizjak @ 2016-08-11 21:32 UTC (permalink / raw)
  To: Jason Merrill; +Cc: gcc-patches

On Thu, Aug 11, 2016 at 11:25 PM, Jason Merrill <jason@redhat.com> wrote:
> There's no need to rename main, but removing the dg-do is OK.

Thanks, I have committed only the removal of dg-do directive.

Uros.

Index: g++.dg/cpp1z/constexpr-lambda6.C
===================================================================
--- g++.dg/cpp1z/constexpr-lambda6.C    (revision 239384)
+++ g++.dg/cpp1z/constexpr-lambda6.C    (working copy)
@@ -1,5 +1,4 @@
 // Testcase from P0170R1
-// { dg-do run }
 // { dg-options -std=c++1z }

 auto monoid = [](auto v) { return [=] { return v; }; };

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-11 21:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 19:03 [PATCH, c++ testsuite]: Fix UNRESOLVED: g++.dg/cpp1z/constexpr-lambda6.C testsuite failure Uros Bizjak
2016-08-11 21:26 ` Jason Merrill
2016-08-11 21:32   ` Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).