OSDN Git Service

fix implicit int
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / init14.C
1 // GROUPS passed initialization
2 // init file
3 // From: hansen@srd.ull.rdc.toshiba.co.jp
4 // Message-Id: <9312130927.AA08192@VLCS151.noname>
5 // Subject: g++ Bug
6 // Date: Mon, 13 Dec 93 18:27:51 +0900
7
8 #include <stdio.h>
9
10 int X = 7;
11
12 struct foo {
13    int a,b,c;
14 };
15
16 struct foo Ack = {5, X, 3};
17
18 int main()
19 {
20     if (Ack.a != 5
21         || Ack.b != 7
22         || Ack.c != 3)
23       printf ("FAIL\n");
24     else
25       printf ("PASS\n");
26 }