[llvm-commits] [llvm-gcc-4.2] r48620 - in /llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple: local.C namespace.C
Bill Wendling
isanbard at gmail.com
Thu Mar 20 15:13:59 PDT 2008
Author: void
Date: Thu Mar 20 17:13:59 2008
New Revision: 48620
URL: http://llvm.org/viewvc/llvm-project?rev=48620&view=rev
Log:
Remove redundant tests.
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/local.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/namespace.C
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/local.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/local.C?rev=48620&r1=48619&r2=48620&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/local.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/local.C Thu Mar 20 17:13:59 2008
@@ -72,77 +72,3 @@
marker2();
}
}
-/* Radar 5636185 */
-/* { dg-do compile { target *-*-darwin* } } */
-/* { dg-options "-O0 -gdwarf-2 -dA -c -Wno-deprecated-declarations" } */
-/* { dg-final { scan-assembler "DW_AT_MIPS_linkage_name" } } */
-/* { dg-final { scan-assembler "_Z7marker1v" } } */
-/* { dg-final { scan-assembler "_Z7marker2v" } } */
-/* { dg-final { scan-assembler "_Z6foobari" } } */
-/* { dg-final { scan-assembler-not "_ZZ4mainEN10InnerLocal16NestedInnerLocal7nil_fooEi" } } */
-/* { dg-final { scan-assembler-not "_ZZ4mainEN10InnerLocal6il_fooERKh" } } */
-
-void marker1 (void)
-{
-}
-
-void marker2 (void)
-{
-}
-
-int foobar (int x)
-{
- class Local {
- public:
- int loc1;
- char loc_foo (char c)
- {
- return c + 3;
- }
- };
-
- Local l;
- static Local l1;
- char c;
-
- marker1 ();
-
- l.loc1 = 23;
-
- c = l.loc_foo('x');
- return c + 2;
-}
-
-int main()
-{
- int c;
-
- c = foobar (31);
-
- { // inner block
- class InnerLocal {
- public:
- char ilc;
- int * ip;
- int il_foo (unsigned const char & uccr)
- {
- return uccr + 333;
- }
- class NestedInnerLocal {
- public:
- int nil;
- int nil_foo (int i)
- {
- return i * 27;
- }
- };
- NestedInnerLocal nest1;
- };
-
- InnerLocal il;
-
- il.ilc = 'b';
- il.ip = &c;
- marker2();
- }
-}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/namespace.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/namespace.C?rev=48620&r1=48619&r2=48620&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/namespace.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/namespace.C Thu Mar 20 17:13:59 2008
@@ -207,212 +207,3 @@
C::D::marker2 ();
}
-/* Radar 5636185 */
-/* { dg-do compile { target *-*-darwin* } } */
-/* { dg-options "-O0 -gdwarf-2 -dA -c -Wno-deprecated-declarations" } */
-/* { dg-final { scan-assembler "DW_AT_MIPS_linkage_name" } } */
-/* { dg-final { scan-assembler "_ZN1C12_GLOBAL__N_11F12_GLOBAL__N_14cXfXE" } } */
-/* { dg-final { scan-assembler "_ZN1C12_GLOBAL__N_12cXE" } } */
-/* { dg-final { scan-assembler "_ZN1C12_GLOBAL__N_11F3cXfE" } } */
-/* { dg-final { scan-assembler "_ZN12_GLOBAL__N_11XE" } } */
-/* { dg-final { scan-assembler "_ZN12_GLOBAL__N_11G2XgE" } } */
-/* { dg-final { scan-assembler "_ZN12_GLOBAL__N_11G12_GLOBAL__N_13XgXE" } } */
-
-namespace AAA {
- char c;
- int i;
- int A_xyzq (int);
- char xyzq (char);
- class inA {
- public:
- int xx;
- int fum (int);
- };
-};
-
-int AAA::inA::fum (int i)
-{
- return 10 + i;
-}
-
-namespace BBB {
- char c;
- int i;
- int B_xyzq (int);
- char xyzq (char);
-
- namespace CCC {
- char xyzq (char);
- };
-
- class Class {
- public:
- char xyzq (char);
- int dummy;
- };
-};
-
-int AAA::A_xyzq (int x)
-{
- return 2 * x;
-}
-
-char AAA::xyzq (char c)
-{
- return 'a';
-}
-
-
-int BBB::B_xyzq (int x)
-{
- return 3 * x;
-}
-
-char BBB::xyzq (char c)
-{
- return 'b';
-}
-
-char BBB::CCC::xyzq (char c)
-{
- return 'z';
-}
-
-char BBB::Class::xyzq (char c)
-{
- return 'o';
-}
-
-void marker1(void)
-{
- return;
-}
-
-namespace
-{
- int X = 9;
-
- namespace G
- {
- int Xg = 10;
-
- namespace
- {
- int XgX = 11;
- }
- }
-}
-
-namespace C
-{
- int c = 1;
- int shadow = 12;
-
- class CClass {
- public:
- int x;
- class NestedClass {
- public:
- int y;
- };
- };
-
- void ensureRefs () {
- // NOTE (2004-04-23, carlton): This function is here only to make
- // sure that GCC 3.4 outputs debug info for these classes.
- static CClass *c = new CClass();
- static CClass::NestedClass *n = new CClass::NestedClass();
- }
-
- namespace
- {
- int cX = 6;
-
- namespace F
- {
- int cXf = 7;
-
- namespace
- {
- int cXfX = 8;
- }
- }
- }
-
- namespace C
- {
- int cc = 2;
- }
-
- namespace E
- {
- int ce = 4;
- }
-
- namespace D
- {
- int cd = 3;
- int shadow = 13;
-
- namespace E
- {
- int cde = 5;
- }
-
- void marker2 (void)
- {
- // NOTE: carlton/2003-04-23: I'm listing the expressions that I
- // plan to have GDB try to print out, just to make sure that the
- // compiler and I agree which ones should be legal! It's easy
- // to screw up when testing the boundaries of namespace stuff.
- c;
- //cc;
- C::cc;
- cd;
- //C::D::cd;
- E::cde;
- shadow;
- //E::ce;
- cX;
- F::cXf;
- F::cXfX;
- X;
- G::Xg;
- //cXOtherFile;
- //XOtherFile;
- G::XgX;
-
- return;
- }
-
- }
-}
-
-int main ()
-{
- using AAA::inA;
- char c1;
-
- using namespace BBB;
-
- c1 = xyzq ('x');
- c1 = AAA::xyzq ('x');
- c1 = BBB::CCC::xyzq ('m');
-
- inA ina;
-
- ina.xx = 33;
-
- int y;
-
- y = AAA::A_xyzq (33);
- y += B_xyzq (44);
-
- BBB::Class cl;
-
- c1 = cl.xyzq('e');
-
- marker1();
-
- C::D::marker2 ();
-}
More information about the llvm-commits
mailing list