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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [dll-4.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile { target arm*-*-pe* } } */
2
/* { dg-do compile { target i?86-pc-cygwin } } */
3
/* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } */
4
 
5
__declspec (dllimport) int foo1;
6
int foo1;       /* { dg-warning "redeclared without dllimport" } */
7
 
8
__declspec (dllimport) int foo2;
9
int foo2 = 5;   /* { dg-warning "redeclared without dllimport" } */
10
 
11
int f () { return foo1 + foo2; }
12
 
13
/* FIXME: We should scan the output of nm for this case.  */
14
/* { dg-final { scan-assembler "(foo2:)" } } */
15
/* { dg-final { scan-assembler "(\.comm\[ \t_\]*foo1)" } } */
16
/* { dg-final { scan-assembler-not "(__imp_|_imp__)" } } */

powered by: WebSVN 2.1.0

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