aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr116454-2.c
blob: a1e1604e6169778c644bd4e9de5d80c34ca39f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do run } */
/* { dg-additional-options "-ffast-math" } */
_Complex float arr[2];

int main() {
  _Complex float *ptr;
  ptr = arr;
  *++ptr * 1j; 
  /* ptr should only increment once, not twice. */
  if (ptr != arr + 1)
    __builtin_abort ();
}