From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- gcc/testsuite/g++.old-deja/g++.pt/mi1.C | 76 +++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/mi1.C (limited to 'gcc/testsuite/g++.old-deja/g++.pt/mi1.C') diff --git a/gcc/testsuite/g++.old-deja/g++.pt/mi1.C b/gcc/testsuite/g++.old-deja/g++.pt/mi1.C new file mode 100644 index 000000000..8d622ef6f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/mi1.C @@ -0,0 +1,76 @@ +// { dg-do run } +// Test that binfos aren't erroneously shared between instantiations. + +class PK_CryptoSystem +{ +}; +class PK_Encryptor : public virtual PK_CryptoSystem +{ +}; +class PK_FixedLengthCryptoSystem : public virtual PK_CryptoSystem +{ +public: + virtual unsigned int CipherTextLength() const =0; +}; +class PK_FixedLengthEncryptor : public virtual PK_Encryptor, public virtual PK_FixedLengthCryptoSystem +{ +}; +class PK_SignatureSystem +{ +public: + virtual ~PK_SignatureSystem() {} +}; +class PK_Signer : public virtual PK_SignatureSystem +{ +public: + virtual void Sign() = 0; +}; +class PK_Verifier : public virtual PK_SignatureSystem +{ +}; +class PK_Precomputation +{ +}; +template class +PK_WithPrecomputation : public T, public virtual PK_Precomputation +{ +}; +typedef PK_WithPrecomputation PKWPFLE; +typedef PK_WithPrecomputation PKWPS; +template class +ECPublicKey : public PKWPFLE +{ +public: + unsigned int CipherTextLength() const { return 1; } + EC ec; +}; +template +class ECPrivateKey : public ECPublicKey, public PKWPS +{ + void Sign() {} + int d; +}; +template +class ECKEP : public ECPrivateKey +{ +}; +class GF2NT : public PK_CryptoSystem +{ + int t1; +}; +class EC2N : public PK_CryptoSystem +{ + GF2NT field; + int a; +}; +template class ECKEP; +template class ECKEP; + +int +main () +{ + ECKEP foo; + + return 0; +} + -- cgit v1.2.3