Commit bd9ee48c by Tom de Vries Committed by Tom de Vries

pr51264-4.C: New test.

2012-04-17  Tom de Vries  <tom@codesourcery.com>

	* g++.dg/pr51264-4.C: New test.

From-SVN: r186547
parent b2cb7511
2012-04-17 Tom de Vries <tom@codesourcery.com>
* g++.dg/pr51264-4.C: New test.
2012-04-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52599
......
/* { dg-do compile } */
/* { dg-options "-O0 -Werror -Wreturn-type" } */
/* Test-case from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25973#c4. */
struct Block
{
public:
Block ();
~Block ();
};
bool func (bool bar)
{
Block block;
bool foo = false;
if (!foo || bar)
do
{
return true;
}
while (0);
else
do
{
return false;
}
while (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment