diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/dll-5.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/dll-5.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dll-5.C b/gcc/testsuite/g++.old-deja/g++.other/dll-5.C new file mode 100644 index 00000000000..b2ad9f51bac --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/dll-5.C @@ -0,0 +1,13 @@ +// Build don't link: +// Skip if not target: arm-*pe +// dllimport is "sorta like" to "extern". +// set compiler_result "(\nfoo1:.*\nfoo2:|\nfoo2:.*\nfoo1:)" +// set not_compiler_result "__imp_" + +__declspec (dllimport) int foo1; +int foo1; + +__declspec (dllimport) int foo2; +int foo2 = 5; + +int f () { return foo1 + foo2; } |