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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr18596-1.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-do compile } */
2
/* { dg-options "-fno-unit-at-a-time" } */
3
 
4
int f(int i)
5
{
6
  static int g(); /* { dg-error "invalid storage class" } */
7
  static int g() { return i; } /* { dg-error "invalid storage class" } */
8
  return g();
9
}
10
 
11
int k (int i)
12
{
13
  static int g (); /* { dg-error "invalid storage class" } */
14
  int g () {
15
        return i;
16
  }
17
 
18
  return g ();
19
}
20
 
21
int l (int i)
22
{
23
  auto int g ();
24
  static int g () { /* { dg-error "invalid storage class" } */
25
    return i;
26
  }
27
 
28
  static int h () { /* { dg-error "invalid storage class" } */
29
    return 3;
30
  }
31
  return g () + h ();
32
}
33
 
34
int m (int i)
35
{
36
  static g ();  /* { dg-error "invalid storage class" } */
37
  static g () { return i; } /* { dg-error "invalid storage class" } */
38
  return g ();
39
}

powered by: WebSVN 2.1.0

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