[llvm-commits] [llvm] r96391 - /llvm/trunk/test/FrontendC/2010-02-15-DbgStaticVar.c
Devang Patel
dpatel at apple.com
Tue Feb 16 13:16:21 PST 2010
Author: dpatel
Date: Tue Feb 16 15:16:08 2010
New Revision: 96391
URL: http://llvm.org/viewvc/llvm-project?rev=96391&view=rev
Log:
New testcase.
Added:
llvm/trunk/test/FrontendC/2010-02-15-DbgStaticVar.c
Added: llvm/trunk/test/FrontendC/2010-02-15-DbgStaticVar.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-02-15-DbgStaticVar.c?rev=96391&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/2010-02-15-DbgStaticVar.c (added)
+++ llvm/trunk/test/FrontendC/2010-02-15-DbgStaticVar.c Tue Feb 16 15:16:08 2010
@@ -0,0 +1,13 @@
+// RUN: %llvmgcc -g -S %s -o - | grep "metadata ..b., metadata ..b., metadata ...,"
+// Test to check intentionally empty linkage name for a static variable.
+// Radar 7651244.
+static int foo(int a)
+{
+ static int b = 1;
+ return b+a;
+}
+
+int main() {
+ int j = foo(1);
+ return 0;
+}
More information about the llvm-commits
mailing list