annotate gcc/testsuite/gcc.dg/dll-8.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile { target i?86-pc-cygwin } } */
kono
parents:
diff changeset
2 /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw*} } */
kono
parents:
diff changeset
3 /* { dg-options "-O3 -fwhole-program" } */
kono
parents:
diff changeset
4 /* { dg-final { scan-assembler "foo1" } } */
kono
parents:
diff changeset
5 /* { dg-final { scan-assembler-not "foo2" } } */
kono
parents:
diff changeset
6 /* { dg-final { scan-assembler "doo1" } } */
kono
parents:
diff changeset
7 /* { dg-final { scan-assembler-not "doo2" } } */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 __declspec(dllexport) int doo1 = 2;
kono
parents:
diff changeset
10 int doo2 = 3;
kono
parents:
diff changeset
11 __declspec(dllexport) int foo1 (void) { return 0; }
kono
parents:
diff changeset
12 int foo2 (void) { return 1; }
kono
parents:
diff changeset
13 int main() { return 0; }
kono
parents:
diff changeset
14