diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-22 23:41:28 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-22 23:41:28 +0000 |
commit | ef3035cb92adc63ba0b69a3febe0eb8780f95c8b (patch) | |
tree | cb9ca61fb0ab899b8f1759077066bc8c30e8bbea | |
parent | 1ed8ccdb794c2d80b5a4f994aaf1ea90ff1356f2 (diff) | |
download | gcc-ef3035cb92adc63ba0b69a3febe0eb8780f95c8b.tar.gz |
Strip carriage returns
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65969 138bc75d-0d04-0410-961f-82ee72b054a4
-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 fbf45e344f5..5e660f86dd8 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 f6f264e1926..69228334ff6 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 6c54043a458..ede938b0042 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; +} |