diff options
author | Devang Patel <dpatel@apple.com> | 2011-04-05 22:54:11 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-04-05 22:54:11 +0000 |
commit | b87c428055dd2fedde2cd4419e9b26104dc62484 (patch) | |
tree | f75b936480b48e0ea68763fe336ffa54acafb498 /clang/test/CodeGenCXX/debug-info-fn-template.cpp | |
parent | 9f738849ab9cc214c77b5937c5d09cc73ac7cd6d (diff) | |
download | bcm5719-llvm-b87c428055dd2fedde2cd4419e9b26104dc62484.tar.gz bcm5719-llvm-b87c428055dd2fedde2cd4419e9b26104dc62484.zip |
Emit debug info for function template parameters.
llvm-svn: 128948
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-fn-template.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-fn-template.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-fn-template.cpp b/clang/test/CodeGenCXX/debug-info-fn-template.cpp new file mode 100644 index 00000000000..c8291af852d --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-fn-template.cpp @@ -0,0 +1,15 @@ +// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s + +template<typename T> +struct XF { + T member; +}; + +template<typename T> +T fx(XF<T> xi) { + return xi.member; +} + +//CHECK: DW_TAG_template_type_parameter +//CHECK: XF<int> +template int fx(XF<int>); |