mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
test case for r95604.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a87ded2695
commit
3c280fccf9
16
test/FrontendC++/2010-02-08-NamespaceVar.cpp
Normal file
16
test/FrontendC++/2010-02-08-NamespaceVar.cpp
Normal file
@ -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;
|
||||
}
|
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user