Commit df7aa629 by Zack Weinberg

Strip carriage returns

From-SVN: r65969
parent 4da2eb6b
...@@ -113,9 +113,9 @@ extern size_t ...@@ -113,9 +113,9 @@ extern size_t
#if defined( UNDEFINE_NULL_CHECK ) #if defined( UNDEFINE_NULL_CHECK )
#ifndef NULL #ifndef NULL
#define NULL 0UL #define NULL 0UL
#endif #endif
#ifndef NULL #ifndef NULL
#define NULL ((void*)0) #define NULL ((void*)0)
#endif #endif
......
// { dg-do compile } // { dg-do compile }
class BIXSet{ class BIXSet{
int z[4]; int z[4];
public: public:
void f(BIXSet &other){ void f(BIXSet &other){
z[0]=other.z[0]; z[0]=other.z[0];
} }
}; };
class TestCase2{ class TestCase2{
public: public:
BIXSet a,b; BIXSet a,b;
public: public:
void run(void){ void run(void){
BIXSet x,y; BIXSet x,y;
process(0,x,y); process(0,x,y);
} }
protected: protected:
template<class BS> void process(const int d,BS &en,BS &lb){ template<class BS> void process(const int d,BS &en,BS &lb){
a.f(en);b.f(lb); a.f(en);b.f(lb);
} }
}; };
/* Produced a overflow in ifcvt.c, causing S to contain 0xffffffff7fffffff. */ /* Produced a overflow in ifcvt.c, causing S to contain 0xffffffff7fffffff. */
int a = 1; int a = 1;
int main () int main ()
{ {
long long s; long long s;
s = a; s = a;
if (s < 0) if (s < 0)
s = -2147483648LL; s = -2147483648LL;
else else
s = 2147483647LL; s = 2147483647LL;
if (s < 0) if (s < 0)
abort (); abort ();
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment