Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.law/operators10.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do assemble } // GROUPS passed operators // opr-eq file // Message-Id: <9306040324.AA22954@balder.cs.wisc.edu> // From: so@cs.wisc.edu (Bryan So) // Subject: g++ bug // Date: Thu, 3 Jun 93 22:24:13 -0500 template <class T> struct Test { int data; Test& operator=(int i) { data = i; return *this; } }; int main() { Test<int> i, j; i = j; return 0; }