aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenOpenCL/func-call-dbg-loc.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenOpenCL/func-call-dbg-loc.cl')
-rw-r--r--test/CodeGenOpenCL/func-call-dbg-loc.cl18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGenOpenCL/func-call-dbg-loc.cl b/test/CodeGenOpenCL/func-call-dbg-loc.cl
new file mode 100644
index 0000000000000..4ed082fa9f1ce
--- /dev/null
+++ b/test/CodeGenOpenCL/func-call-dbg-loc.cl
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -triple amdgcn---amdgizcl -debug-info-kind=limited -O0 -emit-llvm -o - %s | FileCheck %s
+
+typedef struct
+{
+ int a;
+} Struct;
+
+Struct func1();
+
+void func2(Struct S);
+
+void func3()
+{
+ // CHECK: call i32 @func1() #{{[0-9]+}}, !dbg ![[LOC:[0-9]+]]
+ // CHECK: call void @func2(i32 %{{[0-9]+}}) #{{[0-9]+}}, !dbg ![[LOC]]
+ func2(func1());
+}
+