aboutsummaryrefslogtreecommitdiffstats
path: root/test/declrefexpr.cpp
blob: b2a617d4234ed853270cd1c5909430b5717bead7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace declrefexpr_ns{

class testClass {
public:
  testClass() = default;
  int testa;

private:
};
} // namespace

int __attribute__((weak)) main(int argc, char *argv[]) {
  int a;
  int testb;
  declrefexpr_ns::testClass tc;
  tc.testa = 10;

  return a + testb;
}