Debian Codegraph @

gcc/testsuite/gdc.test/runnable/test19734.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=19734
2 // REQUIRED_ARGS: -main
3
4 class C19734
5 {
6 import core.stdc.stdarg;
7
8 extern
9 {
10 // Invalid 'this' parameter because of applied 'extern' storage class.
11 void testin(typeof(this) p)
12 in(this is p)
13 {
14 }
15
16 // Undefined reference to __result.
17 int testout()
18 out(; __result == 2)
19 {
20 return 2;
21 }
22
23 // Undefined reference to var.
24 int testlocal()
25 {
26 int var;
27 return var + 2;
28 }
29
30 // Variable _argptr cannot have initializer.
31 int testvarargs(...)
32 {
33 return 0;
34 }
35 }
36 }