mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
f64edf8d80
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174711 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
370 B
C++
24 lines
370 B
C++
class DummyClass {
|
|
int a_;
|
|
public:
|
|
DummyClass(int a) : a_(a) {}
|
|
int add(int b) {
|
|
return a_ + b;
|
|
}
|
|
};
|
|
|
|
int f(int a, int b) {
|
|
DummyClass c(a);
|
|
return c.add(b);
|
|
}
|
|
|
|
int main() {
|
|
return f(2, 3);
|
|
}
|
|
|
|
// Built with Clang 3.2:
|
|
// $ mkdir -p /tmp/dbginfo
|
|
// $ cp dwarfdump-test.cc /tmp/dbginfo
|
|
// $ cd /tmp/dbginfo
|
|
// $ clang++ -g dwarfdump-test.cc -o <output>
|