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] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-require-effective-target section_anchors } */
2
 
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
 
6
short x;
7
static short f[100] = {0};
8
int
9
bar (void)
10
{
11
  return f[0];
12
}
13
void
14
foo (void)
15
{
16
  int i;
17
  for (i = 0; i < 100; i++)
18
    f[i]++;
19
}
20
int main (void)
21
{
22
  int i;
23
  check_vect ();
24
  foo ();
25
  for (i = 0; i < 100; i++)
26
    if (f[i]!=1)
27
      abort ();
28
  return 0;
29
}
30
 
31
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

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