c++: Implement __is_nothrow_invocable built-in trait
[official-gcc.git] / gcc / testsuite / g++.dg / pr106474.C
blob6cd37a20643161365cbc6975d8d39fe98271d16f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-evrp " } */
4 void foo();
5 static void __attribute__ ((noinline)) DCEMarker0_() {foo ();}
7 void f(bool s, bool c) {
8     if ((!c == !s) && !c) {
9         if (s) {
10             DCEMarker0_();
11         }
12     }
15 // With equivalences, vrp should be able to remove all IFs.
16 /* { dg-final { scan-tree-dump-not "goto" "evrp" } } */