From df7aa6295642f5a4201d3f27032681ba93312c80 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 22 Apr 2003 23:41:28 +0000 Subject: [PATCH] Strip carriage returns From-SVN: r65969 --- gcc/fixinc/tests/base/testing.h | 6 +- gcc/testsuite/g++.dg/template/member.C | 56 +++++++++---------- .../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 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 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; +} -- 2.30.2