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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [attr-externally-visible-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -fwhole-program" } */
3
/* { dg-final { scan-assembler "foo1" } } */
4
/* { dg-final { scan-assembler "foo2" } } */
5
/* { dg-final { scan-assembler "foo3" } } */
6
/* { dg-final { scan-assembler "foo4" } } */
7
/* { dg-final { scan-assembler "foo5" } } */
8
/* { dg-final { scan-assembler-not "foo6" } } */
9
/* { dg-final { scan-assembler "bar1" } } */
10
/* { dg-final { scan-assembler "bar2" } } */
11
/* { dg-final { scan-assembler "bar3" } } */
12
/* { dg-final { scan-assembler "bar4" } } */
13
/* { dg-final { scan-assembler "bar5" } } */
14
/* { dg-final { scan-assembler-not "bar6" } } */
15
 
16
extern void foo1 (void) __attribute__((externally_visible));
17
void foo1 (void) { }
18
 
19
extern void foo2 (void) __attribute__((externally_visible));
20
__attribute__((externally_visible)) void foo2 (void) { }
21
 
22
extern void foo3 (void);
23
__attribute__((externally_visible)) void foo3 (void) { }
24
 
25
__attribute__((externally_visible)) void foo4 (void) { }
26
 
27
void foo5 (void) { }
28
extern void foo5 (void) __attribute__((externally_visible));
29
 
30
void foo6 (void) { }
31
 
32
extern char *bar1 __attribute__((externally_visible));
33
char *bar1;
34
 
35
extern char *bar2 __attribute__((externally_visible));
36
char *bar2 __attribute__((externally_visible));
37
 
38
extern char *bar3;
39
char *bar3 __attribute__((externally_visible));
40
 
41
char *bar4 __attribute__((externally_visible));
42
 
43
char *bar5;
44
extern char *bar5 __attribute__((externally_visible));
45
 
46
char *bar6;
47
 
48
int main (void) { }

powered by: WebSVN 2.1.0

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