OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [init11.C] - Blame information for rev 338

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.