diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-09-13 01:13:19 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-09-13 01:13:19 +0000 |
commit | eeb56abe643929f570006917c088e53bc7c896a4 (patch) | |
tree | 8ab0ef53b7f276c157d86f71eb1200e944be668b /clang/test/CodeGenCXX/debug-lambda-expressions.cpp | |
parent | d4135bbc30de3d3dbd44d64d718fb2169f41bae0 (diff) | |
download | bcm5719-llvm-eeb56abe643929f570006917c088e53bc7c896a4.tar.gz bcm5719-llvm-eeb56abe643929f570006917c088e53bc7c896a4.zip |
Update Clang for D20147 ("DebugInfo: New metadata representation for global variables.")
Differential Revision: http://reviews.llvm.org/D20415
llvm-svn: 281285
Diffstat (limited to 'clang/test/CodeGenCXX/debug-lambda-expressions.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-lambda-expressions.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/debug-lambda-expressions.cpp b/clang/test/CodeGenCXX/debug-lambda-expressions.cpp index b01f770bdd9..1717fc46865 100644 --- a/clang/test/CodeGenCXX/debug-lambda-expressions.cpp +++ b/clang/test/CodeGenCXX/debug-lambda-expressions.cpp @@ -15,6 +15,12 @@ struct D { D(); D(const D&); int x; }; int d(int x) { D y[10]; return [x,y] { return y[x].x; }(); } // Randomness for file. -- 6 + +// VAR: +// CHECK: !DIGlobalVariable(name: "var" +// CHECK-SAME: line: [[VAR_LINE:[0-9]+]] +// CHECK-SAME: type: ![[VAR_T:[0-9]+]] + // CHECK: [[FILE:.*]] = !DIFile(filename: "{{.*}}debug-lambda-expressions.cpp", // CVAR: @@ -26,10 +32,6 @@ int d(int x) { D y[10]; return [x,y] { return y[x].x; }(); } // CHECK-SAME: elements: ![[CVAR_ARGS:[0-9]+]] // CHECK: ![[CVAR_ARGS]] = !{!{{[0-9]+}}} -// VAR: -// CHECK: !DIGlobalVariable(name: "var" -// CHECK-SAME: line: [[VAR_LINE:[0-9]+]] -// CHECK-SAME: type: ![[VAR_T:[0-9]+]] // CHECK: ![[VAR_T]] = distinct !DICompositeType(tag: DW_TAG_class_type // CHECK-SAME: line: [[VAR_LINE]], // CHECK-SAME: elements: ![[VAR_ARGS:[0-9]+]] |