1// Special g++ Options:
2
3// This test makes sure that the stuff in lex.c (real_yylex) is
4// set up to handle real and imag numbers correctly.  This test is against
5// a bug where the compiler was not converting the integer `90' to a
6// complex number, unless you did `90.0'.  Fixed 10/1/1997.
7
8extern "C" {
9int printf (const char *, ...);
10void exit (int);
11void abort (void);
12};
13
14__complex__ double cd;
15
16int one = 1;
17
18int
19main()
20{
21  cd = 1.0+90i;
22  cd *= one;
23
24  if (__real__ cd != 1 || __imag__ cd != 90)
25    abort ();
26
27  exit (0);
28}
29