summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/init14.C
blob: 2305fde422cb3166dff8beafac447d4a34bb5d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// { dg-do run  }
// GROUPS passed initialization
// init file
// From: hansen@srd.ull.rdc.toshiba.co.jp
// Message-Id: <9312130927.AA08192@VLCS151.noname>
// Subject: g++ Bug
// Date: Mon, 13 Dec 93 18:27:51 +0900

#include <stdio.h>

int X = 7;

struct foo {
   int a,b,c;
};

struct foo Ack = {5, X, 3};

int main()
{
    if (Ack.a != 5
	|| Ack.b != 7
	|| Ack.c != 3)
      { printf ("FAIL\n"); return 1; }
    else
      printf ("PASS\n");
}