gcc/libstdc++-v3/testsuite/17_intro
Rainer Orth 88037d82d7 libstdc++: Fix 17_intro/names.cc on Solaris
17_intro/names.cc and experimental/names.cc currently FAIL on Solaris

FAIL: 17_intro/names.cc (test for excess errors)
FAIL: experimental/names.cc (test for excess errors)

Excess errors:
/usr/include/sys/timespec_util.h:22: error: expected ')' before ';' token
/usr/include/stdlib.h:157: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:157: error: expected ')' before '[' token

<sys/timespec_util.h> has

extern int timespeccompare(const struct timespec *l, const struct timespec *r);

while <stdlib.h> has

typedef struct drand48_data {
        unsigned int _initialised;
        unsigned short int x[3];
        unsigned short int a[3];
        unsigned int c;
        unsigned short lastx[3];
} drand48_data;

both of which are broken by defining r resp. x to ( in the testcase.

Fixed by undoing the defines.  Tested on i386-pc-solaris2.11,
sparc-sun-solaris2.11, and x86_64-pc-linux-gnu.


2021-10-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	libstdc++-v3:
	* testsuite/17_intro/names.cc [__sun__] (r, x): Undef.
2021-10-26 14:00:18 +02:00
..
headers libstdc++: Add explicit -std=gnu++17 option to test 2021-06-14 14:04:45 +01:00
badnames.cc Update copyright years. 2021-01-04 10:26:59 +01:00
freestanding.cc Update copyright years. 2021-01-04 10:26:59 +01:00
names.cc libstdc++: Fix 17_intro/names.cc on Solaris 2021-10-26 14:00:18 +02:00
shared_with_static_deps.cc Update copyright years. 2021-01-04 10:26:59 +01:00
static.cc Update copyright years. 2021-01-04 10:26:59 +01:00
tag_type_explicit_ctor.cc Update copyright years. 2021-01-04 10:26:59 +01:00
using_namespace_std_exp_neg.cc Update copyright years. 2021-01-04 10:26:59 +01:00
using_namespace_std_tr1_neg.cc Update copyright years. 2021-01-04 10:26:59 +01:00
using_namespace_std.cc Update copyright years. 2021-01-04 10:26:59 +01:00