aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh52.C
blob: 475070caebfc8f755e2c228b4e68b1dfd0318a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Special g++ Options: -fexceptions -O9

int promote_mode (int mode, int *punsignedp)
{
  int unsignedp = *punsignedp;
  *punsignedp = unsignedp;
  return mode;
}

int main() {
  int i;
  i = promote_mode (42, &i);
  return i != 42;
}