diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-06-11 03:44:49 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-06-11 03:44:49 +0000 |
commit | 4d870388ff715ef89999c0c5ed1dd14f011c4b9e (patch) | |
tree | 4ba0d180badc654920f6e8746a83a8a5d807d10f /gcc | |
parent | 88fa51976cafaf6cd937fa0335c75685e07e963f (diff) | |
download | gcc-4d870388ff715ef89999c0c5ed1dd14f011c4b9e.zip gcc-4d870388ff715ef89999c0c5ed1dd14f011c4b9e.tar.gz gcc-4d870388ff715ef89999c0c5ed1dd14f011c4b9e.tar.bz2 |
Revert last patch
From-SVN: r34487
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/mangle1.C | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/mangle1.C b/gcc/testsuite/g++.old-deja/g++.other/mangle1.C index 537d732..21e7b32 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/mangle1.C +++ b/gcc/testsuite/g++.old-deja/g++.other/mangle1.C @@ -1,4 +1,11 @@ // Test for proper mangling by setting up name clashes. +// Special g++ Options: -fno-squangle + +#if (!defined (__GXX_ABI_VERSION) || __GXX_ABI_VERSION < 100) +#define NAME(OLD, NEW) OLD +#else +#define NAME(OLD, NEW) NEW +#endif /* (!defined (__GXX_ABI_VERSION) || __GXX_ABI_VERSION < 100) */ class A { }; typedef A A2; @@ -7,41 +14,41 @@ typedef void V; typedef I I2; void f (const A2&, int, const A2&, const A&) { } // ERROR - name clash -int _Z1fRK1AiS1_S1_ = 0; // ERROR - name clash +int NAME (f__FRC1AiT0T0, _Z1fRK1AiS1_S1_) = 0; // ERROR - name clash void f (int, long, int, I) { } // ERROR - name clash -int _Z1filii = 0; // ERROR - name clash +int NAME (f__Filii, _Z1filii) = 0; // ERROR - name clash void f (I, float, I, I2) { } // ERROR - name clash -int _Z1fifii = 0; // ERROR - name clash +int NAME (f__Fifii, _Z1fifii) = 0; // ERROR - name clash void f (void*, float, void*, V*) { } // ERROR - name clash -int _Z1fPvfS_S_ = 0; // ERROR - name clash +int NAME (f__FPvfT0T0, _Z1fPvfS_S_) = 0; // ERROR - name clash void f (wchar_t) { } // ERROR - name clash -int _Z1fw = 0; // ERROR - name clash +int NAME (f__Fw, _Z1fw) = 0; // ERROR - name clash void f(int, A, A2, A) { } // ERROR - name clash -int _Z1fi1AS_S_ = 0; // ERROR - name clash +int NAME (f__FiG1AN21, _Z1fi1AS_S_) = 0; // ERROR - name clash void f(const A2&, const A2&, const A2&, const A2&, int&) { } // ERROR - name clash -int _Z1fRK1AS1_S1_S1_Ri = 0; // ERROR - name clash +int NAME (f__FRC1AN30Ri, _Z1fRK1AS1_S1_S1_Ri) = 0; // ERROR - name clash void f(const A2&, int, const A2&, const A2&, const A2&, int&) { } // ERROR - name clash -int _Z1fRK1AiS1_S1_S1_Ri = 0; // ERROR - name clash +int NAME (f__FRC1AiT0N20Ri, _Z1fRK1AiS1_S1_S1_Ri) = 0; // ERROR - name clash void f(const A2&, int, const A2&, const A2&, const A2&, int&, int&, int&) { } // ERROR - name clash -int _Z1fRK1AiS1_S1_S1_RiS2_S2_ = 0; // ERROR - name clash +int NAME (f__FRC1AiT0N20RiN25, _Z1fRK1AiS1_S1_S1_RiS2_S2_) = 0; // ERROR - name clash void f(const A2&, int, const A2&, const A2&, const A2&, int, int, int) { } // ERROR - name clash -int _Z1fRK1AiS1_S1_S1_iii = 0; // ERROR - name clash +int NAME (f__FRC1AiT0N20iii, _Z1fRK1AiS1_S1_S1_iii) = 0; // ERROR - name clash void f(bool, bool) {} // ERROR - name clash -int _Z1fbb = 0; // ERROR - name clash +int NAME (f__FbT0, _Z1fbb) = 0; // ERROR - name clash int main () |