diff --git a/clang/test/CodeGen/debug-info-static.c b/clang/test/CodeGen/debug-info-static.c new file mode 100644 index 0000000000000000000000000000000000000000..e75d20fbacc290912b6fc8165da4adf7cb03971f --- /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; +}