diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t04.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.pt/t04.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t04.C b/gcc/testsuite/g++.old-deja/g++.pt/t04.C new file mode 100755 index 0000000..faa04fc --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/t04.C @@ -0,0 +1,8 @@ +// Build don't link: + +template <class A> class B { public: A a; }; +static B<int> b_int; +static B<char> b_char; +static B<unsigned char> b_uchar; + +int foo () { return b_int.a + b_char.a + b_uchar.a; } |