1 // { dg-do run  }
2 // { dg-options "-fexceptions -O9" }
3 
promote_mode(int mode,int * punsignedp)4 int promote_mode (int mode, int *punsignedp)
5 {
6   int unsignedp = *punsignedp;
7   *punsignedp = unsignedp;
8   return mode;
9 }
10 
main()11 int main() {
12   int i;
13   i = promote_mode (42, &i);
14   return i != 42;
15 }
16