aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/patches1.C
blob: e151a33fa2462e8d2dc75c1530bf2e4fdff10915 (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
// Build don't link: 
// GROUPS passed patches
// patches file
// From: david.binderman@pmsr.philips.co.uk
// Date:     Wed, 6 Oct 93 17:05:54 BST
// Subject:  Reno 1.2 bug fix
// Message-ID: <9310061605.AA04160@pmsr.philips.co.uk>

int type(float)       { return 1; }
int type(double)      { return 2; }
int type(long double) { return 3; }

extern "C" int printf( const char *, ...);

main()
{
      int i = 0;
      if (type(0.0) != 2)
              ++i;
      if (i > 0)
	printf ("FAIL\n");
      else
	printf ("PASS\n");
}