This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp4] Additional tests for the default clause


Hi!

On Thu, 18 Jun 2015 11:20:54 -0500, James Norris <jnorris@codesourcery.com> wrote:
> The attached patch adds additional tests for the
> OpenACC default clause.

Thanks!

> --- /dev/null
> +++ b/gcc/testsuite/c-c++-common/goacc/default-1.c
> @@ -0,0 +1,57 @@
> +/* { dg-do run } */
> +
> +#include <stdlib.h>
> +
> +int
> +main (int argc, char **argv)
> +{
> +[...]
> +[...] /* { dg-error "[...]" } */
> +[...]

A tiny bit on cleanup committed in r224645:

commit c2172340c47ed08f8b23a5a1e8d21a1eef8626fc
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Jun 19 09:37:22 2015 +0000

    When testing for compiler error diagnostics, don't expect to run test
    
        PASS: c-c++-common/goacc/default-1.c  (test for errors, line 13)
        PASS: [...]
        PASS: c-c++-common/goacc/default-1.c  (test for errors, line 49)
        PASS: c-c++-common/goacc/default-1.c (test for excess errors)
        UNRESOLVED: c-c++-common/goacc/default-1.c compilation failed to produce executable
    
    	gcc/testsuite/
    	* c-c++-common/goacc/default-1.c: Remove dg-do run directive.
    	Remove <stdlib.h> include.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@224645 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/testsuite/ChangeLog.gomp                 |    5 +++++
 gcc/testsuite/c-c++-common/goacc/default-1.c |    6 +-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git gcc/testsuite/ChangeLog.gomp gcc/testsuite/ChangeLog.gomp
index 2bbf2e1..44122fa 100644
--- gcc/testsuite/ChangeLog.gomp
+++ gcc/testsuite/ChangeLog.gomp
@@ -1,3 +1,8 @@
+2015-06-18  Thomas Schwinge  <thomas@codesourcery.com>
+
+	* c-c++-common/goacc/default-1.c: Remove dg-do run directive.
+	Remove <stdlib.h> include.
+
 2015-06-18  James Norris  <jnorris@codesourcery.com>
 
 	* c-c++-common/goacc/default-1.c: New test.
diff --git gcc/testsuite/c-c++-common/goacc/default-1.c gcc/testsuite/c-c++-common/goacc/default-1.c
index 41757f1..85a2449 100644
--- gcc/testsuite/c-c++-common/goacc/default-1.c
+++ gcc/testsuite/c-c++-common/goacc/default-1.c
@@ -1,7 +1,3 @@
-/* { dg-do run } */
-
-#include <stdlib.h>
-
 int
 main (int argc, char **argv)
 {
@@ -11,7 +7,7 @@ main (int argc, char **argv)
   b = 0.0;
 
 #pragma acc parallel default (shared) /* { dg-error "expected 'none'" } */
-  /* { dg-error "expected '\\\)'" "" { target c++ } 13 } */
+  /* { dg-error "expected '\\\)'" "" { target c++ } 9 } */
   {
     b = a;
     a = 1.0;


GrÃÃe,
 Thomas

Attachment: pgp88I4THxAtj.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]