diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template38.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template38.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template38.C b/gcc/testsuite/g++.old-deja/g++.jason/template38.C new file mode 100644 index 00000000000..567dc20e419 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template38.C @@ -0,0 +1,18 @@ +// Special g++ Options: -fansi-overloading + +struct A { + friend int operator== (const A&, const A&); + A (int) { } +}; + +template <class T> int +operator== (const T&, const T&) +{ + return 0; +} + +main () +{ + A a (1); + return a == 1; +} |