summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-static.c
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
commitf1faeefb3262bd73de20e11bf44fadba2ff45460 (patch)
tree3c8cb6c470b7f4cf55082cc6b9186fecff686cfa /clang/test/CodeGen/debug-info-static.c
parent44030f12f1df1d0299faad6e9b6f5c55fb20e61e (diff)
downloadbcm5719-llvm-f1faeefb3262bd73de20e11bf44fadba2ff45460.tar.gz
bcm5719-llvm-f1faeefb3262bd73de20e11bf44fadba2ff45460.zip
Add new test.
llvm-svn: 143704
Diffstat (limited to 'clang/test/CodeGen/debug-info-static.c')
-rw-r--r--clang/test/CodeGen/debug-info-static.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-static.c b/clang/test/CodeGen/debug-info-static.c
new file mode 100644
index 00000000000..e75d20fbacc
--- /dev/null
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud