[llvm-branch-commits] [llvm-branch] r96487 - /llvm/branches/Apple/Hermes/test/FrontendC/2010-02-15-DbgStaticVar.c
Devang Patel
dpatel at apple.com
Wed Feb 17 10:25:34 PST 2010
Author: dpatel
Date: Wed Feb 17 12:25:33 2010
New Revision: 96487
URL: http://llvm.org/viewvc/llvm-project?rev=96487&view=rev
Log:
Merge r96391 from mainline.
Added:
llvm/branches/Apple/Hermes/test/FrontendC/2010-02-15-DbgStaticVar.c
Added: llvm/branches/Apple/Hermes/test/FrontendC/2010-02-15-DbgStaticVar.c
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/test/FrontendC/2010-02-15-DbgStaticVar.c?rev=96487&view=auto
==============================================================================
--- llvm/branches/Apple/Hermes/test/FrontendC/2010-02-15-DbgStaticVar.c (added)
+++ llvm/branches/Apple/Hermes/test/FrontendC/2010-02-15-DbgStaticVar.c Wed Feb 17 12:25:33 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-branch-commits
mailing list