From 2879ca2a89e81ec127e2accb87bd3884a78d6ad4 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Fri, 29 May 1998 08:10:44 +0000 Subject: Pick up a few scraggling files that missed my first add/commit cycle. From-SVN: r20138 --- gcc/testsuite/g++.old-deja/g++.robertl/ebnull-cast.C | 18 ++++++++++++++++++ .../g++.old-deja/g++.robertl/ebnull-oldcast.C | 17 +++++++++++++++++ gcc/testsuite/g++.old-deja/g++.robertl/ebnull.C | 17 +++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.robertl/ebnull-cast.C create mode 100644 gcc/testsuite/g++.old-deja/g++.robertl/ebnull-oldcast.C create mode 100644 gcc/testsuite/g++.old-deja/g++.robertl/ebnull.C (limited to 'gcc') diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-cast.C b/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-cast.C new file mode 100644 index 0000000..d220e90 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-cast.C @@ -0,0 +1,18 @@ +class null { + null (null const&); + void operator& (); + + public: + null () {} + + template + operator T* () const { return 0; } +} const null; + + +int main () +{ + int *p = static_cast(null); + + return 0; +} diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-oldcast.C b/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-oldcast.C new file mode 100644 index 0000000..cf6c21b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-oldcast.C @@ -0,0 +1,17 @@ +class null { + null (null const&); + void operator& (); + + public: + null () {} + + template + operator T* () const { return 0; } +} const null; + +int main () +{ + int *p = (int*) null; + + return 0; +} diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/ebnull.C b/gcc/testsuite/g++.old-deja/g++.robertl/ebnull.C new file mode 100644 index 0000000..e6eea2d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.robertl/ebnull.C @@ -0,0 +1,17 @@ +class null { + null (null const&); + void operator& (); + + public: + null () {} + + template + operator T* () const { return 0; } +} const null; + +int main () +{ + int *p = null; + + return 0; +} -- cgit v1.1