diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/local5.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.pt/local5.C | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/local5.C b/gcc/testsuite/g++.old-deja/g++.pt/local5.C new file mode 100755 index 0000000..b49525c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/local5.C @@ -0,0 +1,24 @@ +template <class INT> +class b +{ +private: + char a(int x) + { + union { + int i; + char c; + } val; + val.i = x; + return val.c; + }; + +public: + b() { + } +}; + +int main() { + b<int> n; + return 0; +} + |