Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
lib_min.cpp
Go to the documentation of this file.
1#include <stdio.h>
2
3static const struct XXX {
4 XXX() { puts("XXX"); }
5} s_sss;
6
7struct A {
8 int aaa;
9 A()
10 : aaa(123)
11 {
12 puts("A cstr");
13 }
15 {
16 puts("A dstr");
17 }
18 void put() const
19 {
20 printf("aaa=%d\n", aaa);
21 }
22};
23
24template<int dummy = 0>
25struct XT {
26 static A sss;
27};
28
29template<int dummy>
31
32typedef XT<0> X;
33
34static struct Init {
36 {
37 puts("Init");
38 X::sss.put();
39 }
40} s_init;
41
42int f() { puts("f"); return 4; }
43
44static const int r = f();
45
46int main()
47{
48 puts("main");
49 printf("r=%d\n", r);
50 X::sss.put();
51}
const mie::Vuint & r
Definition bn.cpp:28
int f()
Definition lib_min.cpp:42
XT< 0 > X
Definition lib_min.cpp:32
int main()
Definition lib_min.cpp:46
A()
Definition lib_min.cpp:9
~A()
Definition lib_min.cpp:14
int aaa
Definition lib_min.cpp:8
void put() const
Definition lib_min.cpp:18
Definition lib.h:54
Init()
Definition lib_min.cpp:35
Definition lib.h:43
static A sss
Definition lib_min.cpp:26
void aaa()