summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/crash12.C
blob: c3906a8d1c630f97ccfcd9e2511c64bd8a23232b (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Bug: g++ dies instead of flagging this invalid.

inline float  max(float  x, float  y) { return (x>y)?x:y; }

float  b(float  x, float  y, float  z)
{
  float f = (y<x)?x:(max<y)?z:y;	// { dg-error "" } 
  return f;
}