2 // Makes bogus x86 assembly code.
5 // The VxWorks kernel-mode headers define a macro named "max", which is not
6 // ISO-compliant, but is part of the VxWorks API.
7 #if defined __vxworks && !defined __RTP__
16 return (a > b) ? a : b;
19 // Prototypes (enable one or the other)
20 double max<>(double, double); // { dg-error "" } bogus code
29 cout << max(d, i) << endl; // { dg-error "" }
30 cout << max(i, d) << endl; // { dg-error "" }