aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-11-04 16:57:26 +0000
committerDevang Patel <dpatel@apple.com>2011-11-04 16:57:26 +0000
commitc915bc94892347e7084a61b7276e7614491cddcb (patch)
treebe1cee62cb7093de81a2be1f3fb3178faa213e72
parente7ef8556f4ee3012a0479308c993af0fbee448df (diff)
Add new test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143704 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/debug-info-static.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-static.c b/test/CodeGen/debug-info-static.c
new file mode 100644
index 0000000000..e75d20fbac
--- /dev/null
+++ b/test/CodeGen/debug-info-static.c
@@ -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;
+}