diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.oliva/partspec1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/partspec1.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/partspec1.C b/gcc/testsuite/g++.old-deja/g++.oliva/partspec1.C new file mode 100644 index 000000000..887924781 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/partspec1.C @@ -0,0 +1,20 @@ +// { dg-do assemble } + +// Copyright (C) 1999 Free Software Foundation + +// by Alexandre Oliva <oliva@dcc.unicamp.br> +// simplified from bug report by Andrey Slepuhin <pooh@msu.ru> + +template <typename A, int* P> struct X; + +int a; + +template <typename A> +struct X<A,&a> {}; + +int b; + +template <typename A> +struct X<A,&b> {}; + +X<int,&a> x; |