Fix ISO_Fortran_binding.h paths in gfortran testsuite

ISO_Fortran_binding.h is now generated in the libgfortran build
directory where it is on the default include path.  Adjust includes in
the gfortran testsuite not to include an explicit path pointing at the
source directory.

2021-07-27  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
	PR libfortran/101305
	* gfortran.dg/ISO_Fortran_binding_1.c: Adjust include path.
	* gfortran.dg/ISO_Fortran_binding_10.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_11.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_12.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_15.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_16.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_17.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_18.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_3.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_5.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_6.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_7.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_8.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_9.c: Likewise.
	* gfortran.dg/PR94327.c: Likewise.
	* gfortran.dg/PR94331.c: Likewise.
	* gfortran.dg/bind_c_array_params_3_aux.c: Likewise.
	* gfortran.dg/iso_fortran_binding_uint8_array_driver.c: Likewise.
	* gfortran.dg/pr93524.c: Likewise.
This commit is contained in:
Sandra Loosemore 2021-07-08 12:00:57 -07:00
parent c4dc9f5901
commit a3b350f179
19 changed files with 19 additions and 19 deletions

View File

@ -1,6 +1,6 @@
/* Test F2008 18.5: ISO_Fortran_binding.h functions. */
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -2,7 +2,7 @@
/* Contributed by Reinhold Bader <Bader@lrz.de> */
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>

View File

@ -5,7 +5,7 @@ Contributed by Reinhold Bader <Bader@lrz.de>#include <stdio.h> */
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
typedef struct
{

View File

@ -2,7 +2,7 @@
#include <stdio.h>
#include <math.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
/* Contributed by Reinhold Bader <Bader@lrz.de> */

View File

@ -4,7 +4,7 @@
#include <stdlib.h>
#include <stdio.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
// Prototype for Fortran functions
extern void Fsub(CFI_cdesc_t *);

View File

@ -1,6 +1,6 @@
/* Test the fix for PR92142. */
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#include <stdlib.h>

View File

@ -2,7 +2,7 @@
#include <stdio.h>
#include <assert.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
void Csub(const CFI_cdesc_t *, size_t, CFI_index_t invalid);

View File

@ -1,6 +1,6 @@
#include <stdlib.h>
#include <string.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
extern int do_loop(CFI_cdesc_t* array);

View File

@ -1,4 +1,4 @@
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -4,7 +4,7 @@
#include <stdio.h>
#include <math.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
typedef struct {
int i;

View File

@ -4,7 +4,7 @@
#include <stdio.h>
#include <math.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#define DEBUG 0

View File

@ -2,7 +2,7 @@
/* Contributed by Reinhold Bader <Bader@lrz.de> */
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

View File

@ -2,7 +2,7 @@
/* Contributed by Reinhold Bader <Bader@lrz.de> */
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#include <stdio.h>
float Cxgl[] = { 1.1, 2.3, 5.1, 4.2 };

View File

@ -2,7 +2,7 @@
/* Contributed by Gilles Gouaillardet <gilles@rist.or.jp> */
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
#include <stdlib.h>
int cdesc_c(CFI_cdesc_t* x, long *expected)

View File

@ -4,7 +4,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
bool c_vrfy (const CFI_cdesc_t *restrict);

View File

@ -4,7 +4,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
bool c_vrfy (const CFI_cdesc_t *restrict);

View File

@ -5,7 +5,7 @@
#include <errno.h>
#include <stdio.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
void arr_set_c(CFI_cdesc_t*);

View File

@ -1,7 +1,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
extern void fsub(CFI_cdesc_t *);

View File

@ -2,7 +2,7 @@
sm incorrectly for dimensions > 2. */
#include <stdlib.h> // For size_t
#include "../../../libgfortran/ISO_Fortran_binding.h"
#include "ISO_Fortran_binding.h"
void my_fortran_sub_1 (CFI_cdesc_t *dv);
void my_fortran_sub_2 (CFI_cdesc_t *dv);