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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pragma-ep-1.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
/* { dg-do compile { target *-*-osf5* } } */
2
/* { dg-final { scan-assembler "xyzzy_one" } } */
3
/* { dg-final { scan-assembler "xyzzy_two" } } */
4
/* { dg-final { scan-assembler "xyzzz_three" } } */
5
/* { dg-final { scan-assembler "four" } } */
6
/* { dg-final { scan-assembler-not "_four" } } */
7
 
8
#ifndef __PRAGMA_EXTERN_PREFIX
9
#error
10
#endif
11
 
12
#pragma extern_prefix "xyzzy_"
13
 
14
extern int one(void);
15
extern int two(void);
16
 
17
#pragma extern_prefix "xyzzz_"
18
 
19
extern int three(void);
20
 
21
#pragma extern_prefix ""
22
 
23
extern int four(void);
24
 
25
int (*p[]) (void) = {
26
  one, two, three, four
27
};

powered by: WebSVN 2.1.0

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