]> granicus.if.org Git - clang/commitdiff
Add new test.
authorDevang Patel <dpatel@apple.com>
Fri, 4 Nov 2011 16:57:26 +0000 (16:57 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 4 Nov 2011 16:57:26 +0000 (16:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143704 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/debug-info-static.c [new file with mode: 0644]

diff --git a/test/CodeGen/debug-info-static.c b/test/CodeGen/debug-info-static.c
new file mode 100644 (file)
index 0000000..e75d20f
--- /dev/null
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1  -g -emit-llvm -o - %s | FileCheck %s
+
+// CHECK:  xyzzy} ; [ DW_TAG_variable ]
+void f(void)
+{
+   static int xyzzy;
+   xyzzy += 3;
+}