summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/compound-literal-3.c
blob: bcd413c9ca109ae4c3d30f859394e278173294d2 (plain)
1
2
3
4
5
6
7
8
/* PR C/30265, invalid gimple was produced because we did not mark
   the compound literal's decl early enough.  */

int f(_Complex float *);
int g(_Complex float x)
{
  return f(&(_Complex float){x+1}) + f(&x);
}