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

Uros Bizjak ubizjak@gmail.com
Thu Aug 11 19:03:00 GMT 2016


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.
-------------- next part --------------
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);


More information about the Gcc-patches mailing list