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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pragma-init-fini-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* Tests for #pragma init and #pragma fini.  */
2
 
3
/* { dg-do link { target *-*-solaris2.* } } */
4
/* { dg-options "-fpic" } */
5
/* { dg-xfail-if "no .pushsection/.popsection" { i?86-*-solaris2.8 && { ! gas } } } */
6
 
7
#include <stdio.h>
8
 
9
#pragma fini (f)
10
 
11
void f() {
12
  fprintf (stderr, "f\n");
13
}
14
 
15
int main () {
16
}

powered by: WebSVN 2.1.0

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