diff --git a/llvm/test/FrontendC++/2010-02-08-NamespaceVar.cpp b/llvm/test/FrontendC++/2010-02-08-NamespaceVar.cpp new file mode 100644 index 000000000000..cd8247aeaa05 --- /dev/null +++ b/llvm/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/llvm/test/FrontendC/2003-12-14-ExternInlineSupport.c b/llvm/test/FrontendC/2003-12-14-ExternInlineSupport.c index fb92ec773c1a..510d1f800f4c 100644 --- a/llvm/test/FrontendC/2003-12-14-ExternInlineSupport.c +++ b/llvm/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() {}