RTEMS: Add Cortex-M33 multilib
[gcc.git] / gcc / testsuite / g++.dg / predict-4.C
blobab40b48a3400029f3a8271a7b5e2e4047010c882
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate -std=c++11" } */
4 int a, b, c;
6 void
7 bar ()
9   switch (a)
10   {
11     case 3: __builtin_puts("a"); break;
12     [[unlikely]] case 42: __builtin_puts("e"); break;
13     [[likely]] case 333: __builtin_puts("i"); break;
14   } 
17 /* { dg-final { scan-tree-dump "default.*4.98%.*case 3.*4.98%.*case 42.*0.05%.*case 333.*90.00%" "profile_estimate"} } */