diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-04-22 23:41:28 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-04-22 23:41:28 +0000 |
commit | df7aa6295642f5a4201d3f27032681ba93312c80 (patch) | |
tree | cb9ca61fb0ab899b8f1759077066bc8c30e8bbea | |
parent | 4da2eb6b9026e71f167204bc7ced622f44c70a1e (diff) | |
download | gcc-df7aa6295642f5a4201d3f27032681ba93312c80.zip gcc-df7aa6295642f5a4201d3f27032681ba93312c80.tar.gz gcc-df7aa6295642f5a4201d3f27032681ba93312c80.tar.bz2 |
Strip carriage returns
From-SVN: r65969
-rw-r--r-- | gcc/fixinc/tests/base/testing.h | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/member.C | 56 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20011126-1.c | 38 |
3 files changed, 50 insertions, 50 deletions
diff --git a/gcc/fixinc/tests/base/testing.h b/gcc/fixinc/tests/base/testing.h index fbf45e3..5e660f8 100644 --- a/gcc/fixinc/tests/base/testing.h +++ b/gcc/fixinc/tests/base/testing.h @@ -113,9 +113,9 @@ extern size_t #if defined( UNDEFINE_NULL_CHECK ) -#ifndef NULL
-#define NULL 0UL
-#endif
+#ifndef NULL +#define NULL 0UL +#endif #ifndef NULL #define NULL ((void*)0) #endif diff --git a/gcc/testsuite/g++.dg/template/member.C b/gcc/testsuite/g++.dg/template/member.C index f6f264e..6922833 100644 --- a/gcc/testsuite/g++.dg/template/member.C +++ b/gcc/testsuite/g++.dg/template/member.C @@ -1,28 +1,28 @@ -// { dg-do compile }
-
-
-class BIXSet{
-int z[4];
-public:
-void f(BIXSet &other){
-z[0]=other.z[0];
-}
-
-};
-
-class TestCase2{
-public:
-BIXSet a,b;
-
-public:
-void run(void){
-BIXSet x,y;
-process(0,x,y);
-}
-
-protected:
-template<class BS> void process(const int d,BS &en,BS &lb){
-a.f(en);b.f(lb);
-}
-
-};
+// { dg-do compile } + + +class BIXSet{ +int z[4]; +public: +void f(BIXSet &other){ +z[0]=other.z[0]; +} + +}; + +class TestCase2{ +public: +BIXSet a,b; + +public: +void run(void){ +BIXSet x,y; +process(0,x,y); +} + +protected: +template<class BS> void process(const int d,BS &en,BS &lb){ +a.f(en);b.f(lb); +} + +}; diff --git a/gcc/testsuite/gcc.c-torture/execute/20011126-1.c b/gcc/testsuite/gcc.c-torture/execute/20011126-1.c index 6c54043..ede938b0 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20011126-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20011126-1.c @@ -1,19 +1,19 @@ -/* Produced a overflow in ifcvt.c, causing S to contain 0xffffffff7fffffff. */
-
-int a = 1;
-
-int main ()
-{
- long long s;
-
- s = a;
- if (s < 0)
- s = -2147483648LL;
- else
- s = 2147483647LL;
-
- if (s < 0)
- abort ();
-
- return 0;
-}
+/* Produced a overflow in ifcvt.c, causing S to contain 0xffffffff7fffffff. */ + +int a = 1; + +int main () +{ + long long s; + + s = a; + if (s < 0) + s = -2147483648LL; + else + s = 2147483647LL; + + if (s < 0) + abort (); + + return 0; +} |