aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2010-02-08-NamespaceVar.cpp
blob: cd8247aeaa05d4b0ba598e1e6b45059a85ebd293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}