/* Test F2008 18.5: ISO_Fortran_binding.h functions. */
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
/* Contributed by Reinhold Bader <Bader@lrz.de> */
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
typedef struct
{
#include <stdio.h>
#include <math.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
/* Contributed by Reinhold Bader <Bader@lrz.de> */
#include <stdlib.h>
#include <stdio.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
// Prototype for Fortran functions
extern void Fsub(CFI_cdesc_t *);
/* Test the fix for PR92142. */
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
void Csub(const CFI_cdesc_t *, size_t, CFI_index_t invalid);
#include <stdlib.h>
#include <string.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
extern int do_loop(CFI_cdesc_t* array);
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
typedef struct {
int i;
#include <stdio.h>
#include <math.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#define DEBUG 0
/* Contributed by Reinhold Bader <Bader@lrz.de> */
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* Contributed by Reinhold Bader <Bader@lrz.de> */
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#include <stdio.h>
float Cxgl[] = { 1.1, 2.3, 5.1, 4.2 };
/* Contributed by Gilles Gouaillardet <gilles@rist.or.jp> */
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
#include <stdlib.h>
int cdesc_c(CFI_cdesc_t* x, long *expected)
#include <stdbool.h>
#include <stdlib.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
bool c_vrfy (const CFI_cdesc_t *restrict);
#include <stdbool.h>
#include <stdlib.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
bool c_vrfy (const CFI_cdesc_t *restrict);
#include <errno.h>
#include <stdio.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
void arr_set_c(CFI_cdesc_t*);
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
-#include "ISO_Fortran_binding.h"
+#include <ISO_Fortran_binding.h>
extern void fsub(CFI_cdesc_t *);
sm incorrectly for dimensions > 2. */
#include <stdlib.h> // For size_t
-#include "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);
global gcc_warning_prefix
global gcc_error_prefix
global TEST_ALWAYS_FLAGS
+ global gfortran_init_set_GFORTRAN_UNDER_TEST
# We set LC_ALL and LANG to C so that we get the same error messages as expected.
setenv LC_ALL C
setenv LANG C.ASCII
}
- if ![info exists GFORTRAN_UNDER_TEST] then {
+ # GFORTRAN_UNDER_TEST as set below contains $specpath, which depends on
+ # the used multilib config. Thus, its value may need to be reset;
+ # that's tracked via gfortran_init_set_GFORTRAN_UNDER_TEST.
+ if { ![info exists GFORTRAN_UNDER_TEST]
+ || [info exists gfortran_init_set_GFORTRAN_UNDER_TEST] } then {
if [info exists TOOL_EXECUTABLE] {
set GFORTRAN_UNDER_TEST $TOOL_EXECUTABLE
} else {
} else {
set specpath [get_multilibs]
}
- set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -B$specpath/libgfortran/" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
+ set gfortran_init_set_GFORTRAN_UNDER_TEST 1
+ set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -B$specpath/libgfortran/ -I$specpath/libgfortran" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
}
}
}