summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/debug-info-file-checksum.c
diff options
context:
space:
mode:
authorAmjad Aboud <amjad.aboud@intel.com>2016-12-25 10:12:27 +0000
committerAmjad Aboud <amjad.aboud@intel.com>2016-12-25 10:12:27 +0000
commit0bc0e2596fac8d05fb3893385f7b5081e38958f2 (patch)
tree4a4ed878ab1154391fcd0b0517ab71f98e330e35 /test/CodeGen/debug-info-file-checksum.c
parent89014aa92ecb6c7f3c2c95ae6342f729e9724dc2 (diff)
[DebugInfo] Added support for Checksum debug info feature.
Differential Revision: https://reviews.llvm.org/D27641 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/debug-info-file-checksum.c')
-rw-r--r--test/CodeGen/debug-info-file-checksum.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-file-checksum.c b/test/CodeGen/debug-info-file-checksum.c
new file mode 100644
index 0000000000..2750800d41
--- /dev/null
+++ b/test/CodeGen/debug-info-file-checksum.c
@@ -0,0 +1,5 @@
+// RUN: %clang -emit-llvm -S -g -gcodeview -x c %S/Inputs/debug-info-file-checksum.c -o - | FileCheck %s
+
+// Check that "checksum" is created correctly for the compiled file.
+
+// CHECK: !DIFile(filename:{{.*}}, directory:{{.*}}, checksumkind: CSK_MD5, checksum: "a3b7d27af071accdeccaa933fc603608")