]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Analysis/virtualcall.h
Vendor import of clang trunk r290819:
[FreeBSD/FreeBSD.git] / test / Analysis / virtualcall.h
1 #ifdef AS_SYSTEM
2 #pragma clang system_header
3
4 namespace system {
5   class A {
6   public:
7     A() {
8       foo(); // no-warning
9     }
10
11     virtual int foo();
12   };
13 }
14
15 #else
16
17 namespace header {
18   class A {
19   public:
20     A() {
21       foo();
22 #if !PUREONLY
23 #if INTERPROCEDURAL
24           // expected-warning-re@-3 {{{{^}}Call Path : fooCall to virtual function during construction will not dispatch to derived class}}
25 #else
26           // expected-warning-re@-5 {{{{^}}Call to virtual function during construction will not dispatch to derived class}}
27 #endif
28 #endif
29
30     }
31
32     virtual int foo();
33   };
34 }
35
36 #endif