From: Devang Patel Date: Mon, 8 Feb 2010 23:27:46 +0000 (+0000) Subject: test case for r95604. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3c280fccf9f6ed04ad42c09c24cab81121b52171;p=oota-llvm.git test case for r95604. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95605 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FrontendC++/2010-02-08-NamespaceVar.cpp b/test/FrontendC++/2010-02-08-NamespaceVar.cpp new file mode 100644 index 00000000000..cd8247aeaa0 --- /dev/null +++ b/test/FrontendC++/2010-02-08-NamespaceVar.cpp @@ -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; +} diff --git a/test/FrontendC/2003-12-14-ExternInlineSupport.c b/test/FrontendC/2003-12-14-ExternInlineSupport.c index fb92ec773c1..510d1f800f4 100644 --- a/test/FrontendC/2003-12-14-ExternInlineSupport.c +++ b/test/FrontendC/2003-12-14-ExternInlineSupport.c @@ -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() {}