1 /* { dg-do compile } */ 2 /* { dg-additional-options "-O -fexceptions" } */ 3 4 typedef __attribute__ ((const)) int (*bart) (void); 5 foo(bart bar,int m)6 int foo (bart bar, int m) 7 { 8 int i, j = 0; 9 for (i = 0; i < m; i++) 10 j += bar(); 11 return j; 12 } 13 14