diff mbox

Fix some tests

Message ID 541166FA.80203@codesourcery.com
State New
Headers show

Commit Message

Bernd Schmidt Sept. 11, 2014, 9:10 a.m. UTC
These are copy&paste errors (except the l3 instead of 13 which is just 
odd) and they show up on nvptx as type mismatches in the assembly 
because of the implicit declaration. Two of the tests had ^M characters 
which I also removed.

Tested on x86_64-linux and committed as obvious.


Bernd
diff mbox

Patch

commit 93065446e241d0ac36fd0cfb22471022aca307c0
Author: Bernd Schmidt <bernds@codesourcery.com>
Date:   Wed Sep 10 16:30:56 2014 +0200

    Fix declarations in some tests.
    
    	* gcc.dg/compat/struct-by-value-13_main.c (struct_by_value_13_x):
    	Fix declaration.
    	* gcc.dg/compat/struct-by-value-16a_main.c (struct_by_value_16a_x):
    	Fix declaration.
    	* gcc.dg/compat/struct-by-value-17a_main.c (struct_by_value_17a_x):
    	Fix declaration.
    	* gcc.dg/compat/struct-by-value-18a_main.c (struct_by_value_18a_x):
    	Fix declaration.

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1432e77..d83fee5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,14 @@ 
+2014-09-11  Bernd Schmidt  <bernds@codesourcery.com>
+
+        * gcc.dg/compat/struct-by-value-13_main.c (struct_by_value_13_x):
+        Fix declaration.
+        * gcc.dg/compat/struct-by-value-16a_main.c (struct_by_value_16a_x):
+        Fix declaration.
+        * gcc.dg/compat/struct-by-value-17a_main.c (struct_by_value_17a_x):
+        Fix declaration.
+        * gcc.dg/compat/struct-by-value-18a_main.c (struct_by_value_18a_x):
+        Fix declaration.
+
 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
 
 	PR tree-optimization/63186
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c
index b853bb8..41f4927 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c
@@ -2,7 +2,7 @@ 
    variable-length argument lists.  All struct members are type
    _Complex int.  */
 
-extern void struct_by_value_l3_x (void);
+extern void struct_by_value_13_x (void);
 extern void exit (int);
 int fails;
 
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c
index 6a71d15..1520e94 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c
@@ -1,14 +1,14 @@ 
-/* Test structures passed by value, including to a function with a
-   variable-length argument lists.  All struct members are of type
-   _Complex float.  */
-
-extern void struct_by_value_16_x (void);
-extern void exit (int);
-int fails;
-
-int
-main ()
-{
-  struct_by_value_16a_x ();
-  exit (0);
-}
+/* Test structures passed by value, including to a function with a
+   variable-length argument lists.  All struct members are of type
+   _Complex float.  */
+
+extern void struct_by_value_16a_x (void);
+extern void exit (int);
+int fails;
+
+int
+main ()
+{
+  struct_by_value_16a_x ();
+  exit (0);
+}
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c
index 1db0021..f5baefc 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c
@@ -2,7 +2,7 @@ 
    variable-length argument lists.  All struct members are of type
    _Complex double.  */
 
-extern void struct_by_value_17_x (void);
+extern void struct_by_value_17a_x (void);
 extern void exit (int);
 int fails;
 
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c
index 5b9dfd9..ce7edfb 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c
@@ -1,14 +1,14 @@ 
-/* Test structures passed by value, including to a function with a
-   variable-length argument lists.  All struct members are of type
-   _Complex long double.  */
-
-extern void struct_by_value_18_x (void);
-extern void exit (int);
-int fails;
-
-int
-main ()
-{
-  struct_by_value_18a_x ();
-  exit (0);
-}
+/* Test structures passed by value, including to a function with a
+   variable-length argument lists.  All struct members are of type
+   _Complex long double.  */
+
+extern void struct_by_value_18a_x (void);
+extern void exit (int);
+int fails;
+
+int
+main ()
+{
+  struct_by_value_18a_x ();
+  exit (0);
+}