Debian Codegraph @

gcc/testsuite/g++.dg/tm/pr60004.C

raw
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm" }
3
4 int a;
5 int f() {
6 __transaction_atomic {
7 if (a == 5)
8 return 1;
9 }
10 } // { dg-warning "control reaches end of non-void function" }