OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [section-anchors-pr27770.c] - Rev 689

Compare with Previous | Blame | View Log

/* { dg-require-effective-target section_anchors } */ 
 
#include <stdarg.h>
#include "tree-vect.h"
 
short x;
static short f[100] = {0};
int
bar (void)
{
  return f[0];
}
void
foo (void)
{
  int i;
  for (i = 0; i < 100; i++)
    f[i]++;
}
int main (void)
{
  int i;
  check_vect ();
  foo ();
  for (i = 0; i < 100; i++)
    if (f[i]!=1) 
      abort ();
  return 0;
}
 
/* { dg-final { cleanup-tree-dump "vect" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.