aboutsummaryrefslogtreecommitdiff
path: root/clang/test
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-12-09 20:27:01 +0000
committerManman Ren <manman.ren@gmail.com>2013-12-09 20:27:01 +0000
commitcf8001e35f32e189c7f810e886186bf6d2abf848 (patch)
treec9f66b07d96d577c1cd9fdc4660a8b7c70e5feae /clang/test
parent791aeab9709e3f2d1b4e80300d72daef2487a8b5 (diff)
downloadllvm-cf8001e35f32e189c7f810e886186bf6d2abf848.zip
llvm-cf8001e35f32e189c7f810e886186bf6d2abf848.tar.gz
llvm-cf8001e35f32e189c7f810e886186bf6d2abf848.tar.bz2
Merging r195495:
------------------------------------------------------------------------ r195495 | mren | 2013-11-22 11:42:45 -0800 (Fri, 22 Nov 2013) | 5 lines 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: 196812
Diffstat (limited to 'clang/test')
-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 0000000..3a74876
--- /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"