* 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
+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.
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 } } } */
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;