about summary refs log tree commit diff
path: root/abc.cpp
blob: 7f131fdd8fd78906b4fb5986a0b3c37f87c1d16a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// compile using g++ -std=c++11 -g -c abc.cpp -o abc.o

struct Opaque;

struct MyType {
    unsigned int field_a;
    int field_b;
    void* field_c;
    float field_d;
    //double field_e;
    //long long field_f;
    bool field_g;
    char field_h;
    Opaque* field_i;
};

MyType bcd(int x, MyType a) {
    MyType b = a;
    MyType c = b;
    MyType d = c;
    MyType e = d;
    MyType f = e;
    MyType g = f;
    MyType h = g;
    MyType i = h;
    MyType j = i;
    MyType k = j;
    MyType l = k;
    MyType m = l;
    return b;
}
int main() {
    bcd(42, {});
    return 0;
}