summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-version.c
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-11-22 19:42:45 +0000
committerManman Ren <manman.ren@gmail.com>2013-11-22 19:42:45 +0000
commit4b7f23d885d87274441a108336b7b328284addf4 (patch)
tree4a98287d8f1042d835255105b4001c18bc5e0dbe /clang/test/CodeGen/debug-info-version.c
parentfb6439654ddbed20afe4bc9a56c7a7629f126598 (diff)
downloadbcm5719-llvm-4b7f23d885d87274441a108336b7b328284addf4.tar.gz
bcm5719-llvm-4b7f23d885d87274441a108336b7b328284addf4.zip
Debug Info: add a "Debug Info Version" module flag to output the current debug
info version number. Will error out when modules have different version numbers. llvm-svn: 195495
Diffstat (limited to 'clang/test/CodeGen/debug-info-version.c')
-rw-r--r--clang/test/CodeGen/debug-info-version.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-version.c b/clang/test/CodeGen/debug-info-version.c
new file mode 100644
index 00000000000..3a74876de59
--- /dev/null
+++ b/clang/test/CodeGen/debug-info-version.c
@@ -0,0 +1,8 @@
+// RUN: %clang -g -S -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NO_DEBUG
+int main (void) {
+ return 0;
+}
+
+// CHECK: metadata !{i32 1, metadata !"Debug Info Version", i32 1}
+// NO_DEBUG-NOT: metadata !"Debug Info Version"
OpenPOWER on IntegriCloud