Commit 14a1a59f by Jakub Jelinek Committed by Jakub Jelinek

pr31146-2.C: Only do scan-tree-dump for c++14_down.

	* g++.dg/tree-ssa/pr31146-2.C: Only do scan-tree-dump for c++14_down.
	* g++.dg/tree-ssa/pr41428.C: Likewise.
	* g++.dg/expr/bool1.C: Only do dg-do compile instead of dg-do run for
	c++17 and up.
	* g++.dg/expr/bool3.C: Likewise.
	* g++.dg/expr/bitfield5.C: Likewise.
	* g++.old-deja/g++.jason/bool5.C: Likewise.

From-SVN: r252985
parent 684ccf0e
2017-09-19 Jakub Jelinek <jakub@redhat.com>
* g++.dg/tree-ssa/pr31146-2.C: Only do scan-tree-dump for c++14_down.
* g++.dg/tree-ssa/pr41428.C: Likewise.
* g++.dg/expr/bool1.C: Only do dg-do compile instead of dg-do run for
c++17 and up.
* g++.dg/expr/bool3.C: Likewise.
* g++.dg/expr/bitfield5.C: Likewise.
* g++.old-deja/g++.jason/bool5.C: Likewise.
2017-09-18 Martin Sebor <msebor@redhat.com>
PR c/81854
......
// PR c++/30274
// { dg-do run }
// { dg-do run { target c++14_down } }
// { dg-do compile { target c++17 } }
struct S {
bool x : 4;
......
// { dg-do run }
// PR C++/29295
// PR c++/29295
// { dg-do run { target c++14_down } }
// { dg-do compile { target c++17 } }
// make sure that a typedef for a bool will have the
// the same results as a bool itself.
......
// { dg-do run }
// PR C++/29295
// PR c++/29295
// { dg-do run { target c++14_down } }
// { dg-do compile { target c++17 } }
// make sure that a typedef for a bool will have the
// the same results as a bool itself.
......
......@@ -20,4 +20,6 @@ double foo (void)
return v.a[2];
}
/* { dg-final { scan-tree-dump "Replaced .* != 0B. with .1" "forwprop1" } } */
/* -std=c++17 and above doesn't emit operator new () != NULL, so there is
nothing to fold anymore. */
/* { dg-final { scan-tree-dump "Replaced .* != 0B. with .1" "forwprop1" { target c++14_down } } } */
......@@ -11,4 +11,6 @@ int foo(void)
return *(int *)&f;
}
/* { dg-final { scan-tree-dump "Folded into: if \\\(1 != 0\\\)" "ccp1" } } */
/* -std=c++17 and above doesn't emit operator new () != NULL, so there is
nothing to fold anymore. */
/* { dg-final { scan-tree-dump "Folded into: if \\\(1 != 0\\\)" "ccp1" { target c++14_down } } } */
// { dg-do run }
// { dg-do run { target c++14_down } }
// { dg-do compile { target c++17 } }
int main ()
{
bool b = false;
......
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