aboutsummaryrefslogblamecommitdiffstats
path: root/test/declrefexpr.cpp
blob: b2a617d4234ed853270cd1c5909430b5717bead7 (plain) (tree)
1
2
3
4
5
6
7





                         
            






                                                        
            
                               
                
 
                   
 
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;
}