summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/stmtexpr2.C
blob: 44f7f85bcb103135563e5e5abe7664022af83b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }
// { dg-options "" }

#define DMAX(a,b) ({double _a = (a), _b = (b); _a > _b ? _a : _b; })

void foo(void)
{
  double xl, dy;
  xl = DMAX(dy, 0.0);
}