summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/self1.C
blob: dd37c8e609d93f3c235f095f5c46790b626d228b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/29106
// { dg-do run } 

int i;

void f(__SIZE_TYPE__) {
  i = 3;
}


int main()
{
  int* const savepos = sizeof(*savepos) ? 0 : 0;

  f (sizeof (*savepos));

  if (i != 3)
    return 1;
}