mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 04:00:56 +00:00
857ccd2919
Patch by: Xin Wang Differential Revision: https://reviews.llvm.org/D34275 llvm-svn: 311877
15 lines
408 B
C++
15 lines
408 B
C++
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();
|
|
};
|
|
}
|