OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / unsorted2.C
1 // Build don't link: 
2 // GROUPS passed unsorted
3 // code-gen file
4 // From: klaus@steinitz.mathematik.uni-dortmund.de
5 // Date:     Mon, 15 Nov 1993 16:51:11 +0100
6 // Message-ID: <9311151551.AA17761@steinitz.mathematik.uni-dortmund.de>
7
8 template <int A,int B>
9 class X
10 {
11 };
12
13 template <int A,int B,int C>
14 X<A,C> f(X<A,B>,X<B,C>)
15 {
16   X<A,C> result;
17   return result;
18 }
19
20 main()
21 {
22   X<1,3> x;
23   X<1,2> y;
24   X<2,3> z;
25   x=f(y,z);
26 }