Add an UNSPEC_PROLOGUE_USE to prevent the link register from being considered dead.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / init11.C
blob3b3092f096cb25ce61905e73d7a59924fb8e4bb1
1 // GROUPS passed initialization
2 // init file
3 // From: hansen@srd.ull.rdc.toshiba.co.jp
4 // Date:     Mon, 13 Dec 93 18:27:51 +0900
5 // Subject:  g++ Bug
6 // Message-ID: <9312130927.AA08192@VLCS151.noname>
8 #include <stdio.h>
10 int X = 7;
12 struct foo {
13    int a,b,c;
16 struct foo Ack = {5, X, 3};
18 int main()
20   if (Ack.a == 5 && Ack.b == 7 && Ack.c == 3)
21     printf ("PASS\n");
22   else
23     { printf ("FAIL\n"); return 1; }