Debian Codegraph @

gcc/testsuite/gdc.test/runnable_cxx/test6716.d

raw
1 // EXTRA_CPP_SOURCES: test6716.cpp
2
3 version(Windows)
4 {
5 // without main, there is no implicit reference to the runtime library
6 // other platforms pass the runtime library on the linker command line
7 version(CRuntime_Microsoft)
8 version(Win64)
9 pragma(lib, "phobos64");
10 else
11 pragma(lib, "phobos32mscoff");
12 else
13 pragma(lib, "phobos");
14 }
15
16 extern(C++) int test6716(int magic)
17 {
18 assert(magic == 12345);
19 return 0;
20 }