mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
560a144924
llvm-svn: 174711
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>
|