OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [special/] [weak-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run { xfail { hppa*-*-hpux* && { ! hppa*64*-*-* } } } } */
2
/* { dg-require-weak "" } */
3
/* { dg-additional-sources weak-1a.c } */
4
/* See PR target/23387 for hppa xfail details.  */
5
 
6
#include <stdlib.h>
7
 
8
int foo(void) __attribute__((weak));
9
 
10
int foo(void) {
11
    return 0;
12
}
13
 
14
int main(void) {
15
 
16
    if (foo())
17
        exit(0);
18
    else
19
        abort();
20
}

powered by: WebSVN 2.1.0

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