summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-fn-template.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-05 22:54:11 +0000
committerDevang Patel <dpatel@apple.com>2011-04-05 22:54:11 +0000
commit5ecb1dfb303c58138fdabeea00e73bee075b21ee (patch)
tree3c22e71e2b2e6254f7c43115eca68a6b4d9422ad /test/CodeGenCXX/debug-info-fn-template.cpp
parent43ac2978291bf1471e2c916a88c7f1c1e170dc19 (diff)
Emit debug info for function template parameters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-fn-template.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-fn-template.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-fn-template.cpp b/test/CodeGenCXX/debug-info-fn-template.cpp
new file mode 100644
index 0000000000..c8291af852
--- /dev/null
+++ b/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>);