summaryrefslogtreecommitdiff
path: root/test/FrontendC++
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-02-08 23:27:46 +0000
committerDevang Patel <dpatel@apple.com>2010-02-08 23:27:46 +0000
commit3c280fccf9f6ed04ad42c09c24cab81121b52171 (patch)
treef6fa5d2320a2bb6f25d3a6c72a3d4294f2d999d6 /test/FrontendC++
parenta87ded2695e5bce30dbd0d2d2ac10c571bf1d161 (diff)
downloadllvm-3c280fccf9f6ed04ad42c09c24cab81121b52171.tar.gz
llvm-3c280fccf9f6ed04ad42c09c24cab81121b52171.tar.bz2
llvm-3c280fccf9f6ed04ad42c09c24cab81121b52171.tar.xz
test case for r95604.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++')
-rw-r--r--test/FrontendC++/2010-02-08-NamespaceVar.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/FrontendC++/2010-02-08-NamespaceVar.cpp b/test/FrontendC++/2010-02-08-NamespaceVar.cpp
new file mode 100644
index 0000000000..cd8247aeaa
--- /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;
+}