diff options
Diffstat (limited to 'test/CodeGenCXX/debug-info-method-spec.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-method-spec.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-method-spec.cpp b/test/CodeGenCXX/debug-info-method-spec.cpp new file mode 100644 index 0000000..31f6663 --- /dev/null +++ b/test/CodeGenCXX/debug-info-method-spec.cpp @@ -0,0 +1,10 @@ +// RUN: %clang -fverbose-asm -cc1 -g -S %s -o - | grep DW_AT_specification +// Radar 9254491 +class A { +public: + void doSomething(int i) { ++i; } +}; + +void foo(A *a) { + a->doSomething(2); +} |