Lines Matching +full:overloaded +full:- +full:virtual
1 …_cc1 %s -triple i686-pc-win32 -fsyntax-only -Wmicrosoft -Wc++11-extensions -Wno-long-long -verify …
2 …: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -Wmicrosoft -Wc++11-extensions -Wno-long-long …
9 void foo(); // expected-note {{previous declaration}}
10 void foo() throw(); // expected-warning {{exception specification in declaration does not match pre…
12 void r6() throw(...); // expected-note {{previous declaration}}
13 void r6() throw(int); // expected-warning {{exception specification in declaration does not match p…
16 virtual void f2();
17 virtual void f3() throw(...);
21 virtual void f2() throw(...);
22 virtual void f3();
26 virtual ~A() throw(); // expected-note {{overridden virtual function is here}}
30 …virtual ~B(); // expected-warning {{exception specification of overriding function is more lax th…
41 struct B // expected-warning {{types declared in an anonymous union are a Microsoft extension}}
46 union C // expected-warning {{types declared in an anonymous union are a Microsoft extension}}
52 …typedef int D; // expected-warning {{types declared in an anonymous union are a Microsoft extensi…
53 … struct F; // expected-warning {{types declared in an anonymous union are a Microsoft extension}}
60 … struct B2 // expected-warning {{types declared in an anonymous struct are a Microsoft extension}}
65 union C2 // expected-warning {{types declared in an anonymous struct are a Microsoft extension}}
71 …typedef int D2; // expected-warning {{types declared in an anonymous struct are a Microsoft exten…
72 …struct F2; // expected-warning {{types declared in an anonymous struct are a Microsoft extension}}
99 void foo_unaligned(int arg) {} // expected-note {{previous definition is here}} in foo_unaligned()
100 void foo_unaligned(__unaligned int arg) {} // expected-error {{redefinition of 'foo_unaligned'}} in foo_unaligned()
116 …B_unaligned *p5 = p3; // expected-error {{cannot initialize a variable of type 'B_unaligned *' wit… in test_unaligned()
121 …p2_aligned_type4 = p1_aligned_type4; // expected-error {{assigning to 'int aligned_type4::*' from … in test_unaligned()
125 …int *b = a; // expected-error {{cannot initialize a variable of type 'int *' with an lvalue of typ… in test_unaligned()
129 // We should accept assignment of an __unaligned pointer to a non-__unaligned
141 // We should accept type conversion of __unaligned to non-__unaligned references
144 …in_addr(in_addr &a) {} // expected-note {{candidate constructor not viable: no known conversion fr… in in_addr()
145 …in_addr(in_addr *a) {} // expected-note {{candidate constructor not viable: 1st argument ('__unali… in in_addr()
150 …IN_ADDR local_addr2 = a; // expected-error {{no viable conversion from '__unaligned IN_ADDR *' (ak… in f()
180 …enum E1 : Int { SomeOtherValue } field; // expected-warning{{enumeration types with a fixed underl…
184 enum : long long { // expected-warning{{enumeration types with a fixed underlying type are a C++11…
191 void f2(void); // expected-note{{previous declaration is here}}
194 __declspec(dllimport) void AAA::f2(void) { // expected-error{{dllimport cannot be applied to non-in… in f2()
195 … // expected-error@-1{{redeclaration of 'AAA::f2' cannot add 'dllimport' attribute}} in f2()
204 void f(int g = 10 ); // expected-note {{previous definition is here}}
208 void BB<T>::f(int g = 0) { } // expected-warning {{redefinition of default argument}} in f()
213 void static_func(); // expected-note {{previous declaration is here}}
216 static void static_func() // expected-warning {{redeclaring non-static 'static_func' as static is a… in static_func()
221 extern const int static_var; // expected-note {{previous declaration is here}}
222 static const int static_var = 3; // expected-warning {{redeclaring non-static 'static_var' as stati…
235 …b = reinterpret_cast<bool>(ptr); // expected-error {{cast from pointer to smaller type 'bool' lose… in pointer_to_integral_type_conv()
240 virtual void f() = 0;
243 int array[__is_abstract(X)? 1 : -1];
248 void ::f(); // expected-warning{{extra qualification on member 'f'}}
251 C::C(); // expected-warning{{extra qualification on member 'C'}}
266 int i = sp.V2; // expected-error{{no getter defined for property 'V2'}} in TestProperty()
267 sp.V1 = 12; // expected-error{{no setter defined for property 'V1'}} in TestProperty()
268 …int j = sp.V4; // expected-error{{no member named 'GetV_NotExist' in 'StructWithProperty'}} expect… in TestProperty()
269 …sp.V3 = 14; // expected-error{{no member named 'SetV_NotExist' in 'StructWithProperty'}} expected-… in TestProperty()
334 void ExplicitAccess() { int i = this->V; this->V = i; } in ExplicitAccess()
346 bool f() { V = this->V; return V < this->V; } in f()
374 c3.f(); // Overloaded binary op operand in TestSP9()
375 c3.g(); // Overloaded incdec op operand in TestSP9()
376 c3.h(); // Overloaded unary op operand in TestSP9()
381 …int &i2; // expected-warning {{union member 'i2' has reference type 'int &', which is a Microsoft…
402 __declspec(property(get=GetV)) int : 10; // expected-error {{anonymous property is not supported}}
411 return &x.n; // expected-error {{address of property expression requested}} in f()
414 return &MSPropertyClass::n; // expected-error {{address of property expression requested}} in g()
437 // expected-error@+1 {{'sealed' keyword not permitted with interface types}}
442 virtual void OverrideMe();
444 // expected-note@+2 {{overridden virtual function is here}}
445 // expected-warning@+1 {{'sealed' keyword is a Microsoft extension}}
446 virtual void SealedFunction() sealed; // expected-note {{overridden virtual function is here}}
449 // expected-note@+2 {{'SealedType' declared here}}
450 // expected-warning@+1 {{'sealed' keyword is a Microsoft extension}}
452 // expected-error@+2 {{declaration of 'SealedFunction' overrides a 'sealed' function}}
454 …virtual void SealedFunction(); // expected-warning {{'SealedFunction' overrides a member function …
456 // expected-warning@+1 {{'override' keyword is a C++11 extension}}
457 virtual void OverrideMe() override;
460 // expected-error@+1 {{base 'SealedType' is marked 'sealed'}}
464 …// expected-warning@+1 {{attribute 'deprecated' is ignored, place it after "struct" to apply attri… in AfterClassBody()
477 …// expected-warning@+1 {{explicit specialization of 'largest_type_select' within class scope is a …
479 blah x; // expected-error {{unknown type name 'blah'}}
486 int fn() throw(); // expected-note {{previous declaration is here}}
489 int S::fn() { return 0; } // expected-warning {{is missing exception specification}} in fn()
495 typedef char __unaligned *aligned_type; // expected-error {{expected ';' after top level declarator…