diff mbox

[c++,testsuite] : Fix UNRESOLVED: g++.dg/cpp1z/constexpr-lambda6.C testsuite failure

Message ID CAFULd4Z5hj0i5U4PGksX=6haKe_VuB0V9vJgp3ip4ph46MsEUw@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Aug. 11, 2016, 7:03 p.m. UTC
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.

Comments

Jason Merrill Aug. 11, 2016, 9:25 p.m. UTC | #1
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.
diff mbox

Patch

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);