[llvm-commits] [llvm] r95605 - in /llvm/trunk/test: FrontendC++/2010-02-08-NamespaceVar.cpp FrontendC/2003-12-14-ExternInlineSupport.c
Devang Patel
dpatel at apple.com
Mon Feb 8 15:27:46 PST 2010
Author: dpatel
Date: Mon Feb 8 17:27:46 2010
New Revision: 95605
URL: http://llvm.org/viewvc/llvm-project?rev=95605&view=rev
Log:
test case for r95604.
Added:
llvm/trunk/test/FrontendC++/2010-02-08-NamespaceVar.cpp
Modified:
llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c
Added: llvm/trunk/test/FrontendC++/2010-02-08-NamespaceVar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2010-02-08-NamespaceVar.cpp?rev=95605&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2010-02-08-NamespaceVar.cpp (added)
+++ llvm/trunk/test/FrontendC++/2010-02-08-NamespaceVar.cpp Mon Feb 8 17:27:46 2010
@@ -0,0 +1,16 @@
+// RUN: %llvmgxx -S %s -o - | grep cX
+
+namespace C {
+ int c = 1;
+ namespace {
+ int cX = 6;
+ void marker2() {
+ cX;
+ }
+ }
+}
+
+int main() {
+ C::marker2();
+ return 0;
+}
Modified: llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c?rev=95605&r1=95604&r2=95605&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c (original)
+++ llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c Mon Feb 8 17:27:46 2010
@@ -1,3 +1,3 @@
-// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep dead_function
+// RUN: %llvmgcc -Os -xc %s -c -o - | llvm-dis | not grep dead_function
extern __inline__ void dead_function() {}
More information about the llvm-commits
mailing list