Commit 6ca1c37c by Kris Van Hees Committed by Janis Johnson

re PR testsuite/35981 (FAIL: gcc.dg/utf-cvt.c (test for warnings, line 46/47) with -m64)

2008-04-22  Kris Van Hees <kris.van.hees@oracle.com>

	PR testsuite/35981
	* g++.dg/ext/utf-cvt.C: Handle 64-bit platforms correctly.
	Add tests for 'long long'.
	* gcc.dg/utf-cvt.c: Handle 64-bit platforms correctly.
	Add tests for 'long long'.

From-SVN: r134562
parent d9126ef8
2008-04-22 Kris Van Hees <kris.van.hees@oracle.com>
PR testsuite/35981
* g++.dg/ext/utf-cvt.C: Handle 64-bit platforms correctly.
Add tests for 'long long'.
* gcc.dg/utf-cvt.c: Handle 64-bit platforms correctly.
Add tests for 'long long'.
2008-04-22 Nick Clifton <nickc@redhat.com> 2008-04-22 Nick Clifton <nickc@redhat.com>
* gcc.dg/Wconversion-real.c: Add missing end of comment marker. * gcc.dg/Wconversion-real.c: Add missing end of comment marker.
...@@ -15,14 +15,17 @@ extern void fui (unsigned int); ...@@ -15,14 +15,17 @@ extern void fui (unsigned int);
extern void f_l (long); extern void f_l (long);
extern void fsl (signed long); extern void fsl (signed long);
extern void ful (unsigned long); extern void ful (unsigned long);
extern void f_ll (long long);
extern void fsll (signed long long);
extern void full (unsigned long long);
void m(char16_t c0, char32_t c1) void m(char16_t c0, char32_t c1)
{ {
f_c (c0); /* { dg-warning "alter its value" } */ f_c (c0); /* { dg-warning "alter its value" } */
fsc (c0); /* { dg-warning "alter its value" } */ fsc (c0); /* { dg-warning "alter its value" } */
fuc (c0); /* { dg-warning "alter its value" } */ fuc (c0); /* { dg-warning "alter its value" } */
f_s (c0); /* { dg-warning "change the sign" } */ f_s (c0); /* { dg-warning "change the sign" } */
fss (c0); /* { dg-warning "change the sign" } */ fss (c0); /* { dg-warning "change the sign" } */
fus (c0); fus (c0);
f_i (c0); f_i (c0);
fsi (c0); fsi (c0);
...@@ -30,17 +33,23 @@ void m(char16_t c0, char32_t c1) ...@@ -30,17 +33,23 @@ void m(char16_t c0, char32_t c1)
f_l (c0); f_l (c0);
fsl (c0); fsl (c0);
ful (c0); ful (c0);
f_ll (c0);
fsll (c0);
full (c0);
f_c (c1); /* { dg-warning "alter its value" } */ f_c (c1); /* { dg-warning "alter its value" } */
fsc (c1); /* { dg-warning "alter its value" } */ fsc (c1); /* { dg-warning "alter its value" } */
fuc (c1); /* { dg-warning "alter its value" } */ fuc (c1); /* { dg-warning "alter its value" } */
f_s (c1); /* { dg-warning "alter its value" } */ f_s (c1); /* { dg-warning "alter its value" } */
fss (c1); /* { dg-warning "alter its value" } */ fss (c1); /* { dg-warning "alter its value" } */
fus (c1); /* { dg-warning "alter its value" } */ fus (c1); /* { dg-warning "alter its value" } */
f_i (c1); /* { dg-warning "change the sign" } */ f_i (c1); /* { dg-warning "change the sign" } */
fsi (c1); /* { dg-warning "change the sign" } */ fsi (c1); /* { dg-warning "change the sign" } */
fui (c1); fui (c1);
f_l (c1); /* { dg-warning "change the sign" } */ f_l (c1); /* { dg-warning "change the sign" "" { target { ilp32 } } } */
fsl (c1); /* { dg-warning "change the sign" } */ fsl (c1); /* { dg-warning "change the sign" "" { target { ilp32 } } } */
ful (c1); ful (c1);
f_ll (c1);
fsll (c1);
full (c1);
} }
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-std=gnu99 -Wall -Wconversion -Wsign-conversion" } */ /* { dg-options "-std=gnu99 -Wall -Wconversion -Wsign-conversion" } */
typedef unsigned short char16_t; typedef short unsigned int char16_t;
typedef unsigned int char32_t; typedef unsigned int char32_t;
extern void f_c (char); extern void f_c (char);
extern void fsc (signed char); extern void fsc (signed char);
...@@ -18,14 +18,17 @@ extern void fui (unsigned int); ...@@ -18,14 +18,17 @@ extern void fui (unsigned int);
extern void f_l (long); extern void f_l (long);
extern void fsl (signed long); extern void fsl (signed long);
extern void ful (unsigned long); extern void ful (unsigned long);
extern void f_ll (long long);
extern void fsll (signed long long);
extern void full (unsigned long long);
void m (char16_t c0, char32_t c1) void m (char16_t c0, char32_t c1)
{ {
f_c (c0); /* { dg-warning "alter its value" } */ f_c (c0); /* { dg-warning "alter its value" } */
fsc (c0); /* { dg-warning "alter its value" } */ fsc (c0); /* { dg-warning "alter its value" } */
fuc (c0); /* { dg-warning "alter its value" } */ fuc (c0); /* { dg-warning "alter its value" } */
f_s (c0); /* { dg-warning "change the sign" } */ f_s (c0); /* { dg-warning "change the sign" } */
fss (c0); /* { dg-warning "change the sign" } */ fss (c0); /* { dg-warning "change the sign" } */
fus (c0); fus (c0);
f_i (c0); f_i (c0);
fsi (c0); fsi (c0);
...@@ -33,17 +36,23 @@ void m (char16_t c0, char32_t c1) ...@@ -33,17 +36,23 @@ void m (char16_t c0, char32_t c1)
f_l (c0); f_l (c0);
fsl (c0); fsl (c0);
ful (c0); ful (c0);
f_ll (c0);
fsll (c0);
full (c0);
f_c (c1); /* { dg-warning "alter its value" } */ f_c (c1); /* { dg-warning "alter its value" } */
fsc (c1); /* { dg-warning "alter its value" } */ fsc (c1); /* { dg-warning "alter its value" } */
fuc (c1); /* { dg-warning "alter its value" } */ fuc (c1); /* { dg-warning "alter its value" } */
f_s (c1); /* { dg-warning "alter its value" } */ f_s (c1); /* { dg-warning "alter its value" } */
fss (c1); /* { dg-warning "alter its value" } */ fss (c1); /* { dg-warning "alter its value" } */
fus (c1); /* { dg-warning "alter its value" } */ fus (c1); /* { dg-warning "alter its value" } */
f_i (c1); /* { dg-warning "change the sign" } */ f_i (c1); /* { dg-warning "change the sign" } */
fsi (c1); /* { dg-warning "change the sign" } */ fsi (c1); /* { dg-warning "change the sign" } */
fui (c1); fui (c1);
f_l (c1); /* { dg-warning "change the sign" } */ f_l (c1); /* { dg-warning "change the sign" "" { target { ilp32 } } } */
fsl (c1); /* { dg-warning "change the sign" } */ fsl (c1); /* { dg-warning "change the sign" "" { target { ilp32 } } } */
ful (c1); ful (c1);
f_ll (c1);
fsll (c1);
full (c1);
} }
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