summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/virtualcall.h
blob: e2fde2415ec153b7ce621ca204875bdb1cf92a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace header {
  class Z {
  public:
    Z() {
      foo();
#if !PUREONLY
	// expected-warning-re@-2 {{{{^}}Call to virtual function during construction}}
	// expected-note-re@-3 {{{{^}}This constructor of an object of type 'Z' has not returned when the virtual method was called}}
	// expected-note-re@-4 {{{{^}}Call to virtual function during construction}}	
#endif
    }
    virtual int foo();
  };
}
OpenPOWER on IntegriCloud