diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition_patch.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition_patch.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition_patch.C b/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition_patch.C new file mode 100644 index 000000000..b1225a0f8 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition_patch.C @@ -0,0 +1,19 @@ +// Check if patching works with function splitting. +// { dg-require-effective-target freorder } +// { dg-options "-O2 -fnon-call-exceptions -freorder-blocks-and-partition " { target { ! x86_64-*-* } } } +// { dg-options "-O2 -fnon-call-exceptions -freorder-blocks-and-partition -mpatch-functions-for-instrumentation -fno-optimize-sibling-calls " { target x86_64-*-* } } + +int k; + +int +main () +{ + try + { + if (k) + throw 6; + } + catch (...) + { + } +} |