URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [init11.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed initialization
// init file
// From: hansen@srd.ull.rdc.toshiba.co.jp
// Date: Mon, 13 Dec 93 18:27:51 +0900
// Subject: g++ Bug
// Message-ID: <9312130927.AA08192@VLCS151.noname>
#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 ("PASS\n");
else
{ printf ("FAIL\n"); return 1; }
}