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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [declspec-3-no.c] - Blame information for rev 753

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

Line No. Rev Author Line
1 689 jeremybenn
/* See declspec-3.c . Test disabling -Wold-style-declaration. */
2
/* { dg-do compile } */
3
/* { dg-options "-Wextra -Wno-old-style-declaration" } */
4
 
5
static int x0;
6
int static x1; /* { dg-bogus "not at beginning" } */
7
 
8
extern int x2;
9
int extern x3; /* { dg-bogus "not at beginning" } */
10
 
11
typedef int x4;
12
int typedef x5; /* { dg-bogus "not at beginning" } */
13
 
14
void g (int);
15
 
16
void
17
f (void)
18
{
19
  auto int x6 = 0;
20
  int auto x7 = 0; /* { dg-bogus "not at beginning" } */
21
  register int x8 = 0;
22
  int register x9 = 0; /* { dg-bogus "not at beginning" } */
23
  g (x6 + x7 + x8 + x9);
24
}
25
 
26
const static int x10; /* { dg-bogus "not at beginning" } */
27
 
28
/* Attributes are OK before storage class specifiers, since some
29
   attributes are like such specifiers themselves.  */
30
 
31
__attribute__((format(printf, 1, 2))) static void h (const char *, ...);
32
__attribute__((format(printf, 1, 2))) void static i (const char *, ...); /* { dg-bogus "not at beginning" } */

powered by: WebSVN 2.1.0

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