summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-line.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-line.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-line.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/CodeGenCXX/debug-info-line.cpp
index 00d626155b0..8f4e080bdc0 100644
--- a/clang/test/CodeGenCXX/debug-info-line.cpp
+++ b/clang/test/CodeGenCXX/debug-info-line.cpp
@@ -1,6 +1,8 @@
// RUN: %clang_cc1 -g -std=c++11 -S -emit-llvm %s -o - | FileCheck %s
-int &src(); int* sink();
+int &src();
+int* sink();
+__complex float complex_src();
void f1() {
#line 100
@@ -13,6 +15,7 @@ void f1() {
struct foo {
int i;
int &j;
+ __complex float k;
foo();
};
@@ -21,13 +24,17 @@ foo::foo()
#line 200
i
(src()),
- j
- (src())
// CHECK: store i32 {{.*}} !dbg [[DBG_FOO_VALUE:!.*]]
+ j
+ (src()),
// CHECK: store i32* {{.*}} !dbg [[DBG_FOO_REF:!.*]]
+ k
+ (complex_src())
+ // CHECK: store float {{.*}} !dbg [[DBG_FOO_COMPLEX:!.*]]
{
}
// CHECK: [[DBG_F1]] = metadata !{i32 100,
// CHECK: [[DBG_FOO_VALUE]] = metadata !{i32 200,
-// CHECK: [[DBG_FOO_REF]] = metadata !{i32 202,
+// CHECK: [[DBG_FOO_REF]] = metadata !{i32 203,
+// CHECK: [[DBG_FOO_COMPLEX]] = metadata !{i32 206,
OpenPOWER on IntegriCloud