From f1faeefb3262bd73de20e11bf44fadba2ff45460 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 4 Nov 2011 16:57:26 +0000 Subject: [PATCH] Add new test. llvm-svn: 143704 --- clang/test/CodeGen/debug-info-static.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 clang/test/CodeGen/debug-info-static.c diff --git a/clang/test/CodeGen/debug-info-static.c b/clang/test/CodeGen/debug-info-static.c new file mode 100644 index 000000000000..e75d20fbacc2 --- /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; +} -- GitLab