diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-01-17 18:07:27 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-01-26 11:59:57 +0100 |
| commit | 09c4569c87f813773f00d30ad3ce4df94416e56f (patch) | |
| tree | b42c964eb56ae7bba51013f1dd1759e789633b59 /abc.cpp | |
| parent | 9e609db886864cfc324fa54df98f04b006ec994b (diff) | |
| download | rust-09c4569c87f813773f00d30ad3ce4df94416e56f.tar.gz rust-09c4569c87f813773f00d30ad3ce4df94416e56f.zip | |
Implement line debuginfo
Diffstat (limited to 'abc.cpp')
| -rw-r--r-- | abc.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/abc.cpp b/abc.cpp new file mode 100644 index 00000000000..7f131fdd8fd --- /dev/null +++ b/abc.cpp @@ -0,0 +1,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; +} |
