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