• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-tests/
1/* Test assignments.
2   Errors are signalled in C++ mode only, not by a C compiler.  */
3#include "test-moo-sub2.h"
4
5void foo ()
6{
7  root_t a;
8  sub1_t b;
9  sub2_t c;
10
11  /* Test initializations.  */
12  root_t a1 = a;
13  root_t a2 = b;
14  root_t a3 = c;
15  sub1_t b1 = a;	/* ERROR */
16  sub1_t b2 = b;
17  sub1_t b3 = c;
18  sub2_t c1 = a;	/* ERROR */
19  sub2_t c2 = b;	/* ERROR */
20  sub2_t c3 = c;
21
22  /* Test assignments.  */
23  a = a1;
24  a = b1;
25  a = c1;
26  b = a2;	/* ERROR */
27  b = b2;
28  b = c2;
29  c = a3;	/* ERROR */
30  c = b3;	/* ERROR */
31  c = c3;
32}
33