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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [pr46940_0.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-require-linker-plugin "" } */
2
/* { dg-extra-ld-options "-fuse-linker-plugin" } */
3
#include <stdio.h>
4
 
5
#define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
6
#define ASMNAME2(prefix, cname) STRING (prefix) cname
7
#define STRING(x)    #x
8
 
9
extern __attribute__((visibility("hidden"))) void _moz_foo (void);
10
extern __typeof (_moz_foo) _moz_foo __asm__ (ASMNAME ("INT__foo")) __attribute__((__visibility__("hidden"))) ;
11
void _moz_foo(void)
12
{
13
  printf ("blah\n");
14
}
15
extern __typeof (_moz_foo) EXT__foo __asm__(ASMNAME ("_moz_foo")) __attribute__((__alias__("" "INT__foo")));

powered by: WebSVN 2.1.0

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