The compilation, where error is expected, will not produce an executable. 2016-08-11 Uros Bizjak <ubiz...@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.
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);