Lines Matching +full:unused +full:- +full:function
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
8 void two() { } // expected-note 4{{possible target for call}} in two()
9 void two(int) { } // expected-note 4{{possible target for call}} in two()
11 template<class T> void twoT() { } // expected-note 5{{possible target for call}} in twoT()
12 template<class T> void twoT(int) { } // expected-note 5{{possible target for call}} in twoT()
20 a parameter of a function (5.2.2),
21 a parameter of a user-defined operator (13.5),
22 the return value of a function, operator function, or conversion (6.6.3),
24 a non-type template-parameter (14.3.2)
31 one; // expected-warning {{expression result unused}} in main()
32 …two; // expected-error {{reference to overloaded function could not be resolved; did you m… in main()
33 oneT<int>; // expected-warning {{expression result unused}} in main()
34 …twoT<int>; // expected-error {{reference to overloaded function could not be resolved; did you me… in main()
35 typeid(oneT<int>); // expected-warning{{expression result unused}} in main()
36 sizeof(oneT<int>); // expected-error {{invalid application of 'sizeof' to a function type}} in main()
37 …sizeof(twoT<int>); //expected-error {{reference to overloaded function could not be resolved; did … in main()
40 *one; // expected-warning {{expression result unused}} in main()
41 *oneT<int>; // expected-warning {{expression result unused}} in main()
42 …*two; //expected-error {{reference to overloaded function could not be resolved; did you mean to … in main()
43 …*twoT<int>; //expected-error {{reference to overloaded function could not be resolved; did you mea… in main()
44 …-warning {{expression result unused}} expected-warning {{address of function 'oneT<int>' will alwa… in main()
45 +oneT<int>; // expected-warning {{expression result unused}} in main()
46 -oneT<int>; //expected-error {{invalid argument type}} in main()
47 oneT<int> == 0; // expected-warning {{equality comparison result unused}} \ in main()
48 … // expected-note {{use '=' to turn this equality comparison into an assignment}} \ in main()
49 …// expected-warning {{comparison of function 'oneT<int>' equal to a null pointer is always false}}… in main()
50 // expected-note {{prefix with the address-of operator to silence this warning}} in main()
51 0 == oneT<int>; // expected-warning {{equality comparison result unused}} \ in main()
52 …// expected-warning {{comparison of function 'oneT<int>' equal to a null pointer is always false}}… in main()
53 // expected-note {{prefix with the address-of operator to silence this warning}} in main()
54 0 != oneT<int>; // expected-warning {{inequality comparison result unused}} \ in main()
55 …// expected-warning {{comparison of function 'oneT<int>' not equal to a null pointer is always tru… in main()
56 // expected-note {{prefix with the address-of operator to silence this warning}} in main()
57 (false ? one : oneT<int>); // expected-warning {{expression result unused}} in main()
60 …int i = (int) (false ? (void (*)(int))twoT<int> : oneT<int>); //expected-error {{incompatible oper… in main()
61 …; //expected-error {{reference to overloaded function could not be resolved; did you mean to call … in main()
62 …<int>; // expected-warning {{address of function 'oneT<int>' will always evaluate to 'true'}} expe… in main()
69 one < one; //expected-warning {{self-comparison always evaluates to false}} \ in main()
70 //expected-warning {{relational comparison result unused}} in main()
72 oneT<int> < oneT<int>; //expected-warning {{self-comparison always evaluates to false}} \ in main()
73 //expected-warning {{relational comparison result unused}} in main()
75 … two; //expected-error 2 {{reference to overloaded function could not be resolved; did you mean to… in main()
76 …; //expected-error {{reference to overloaded function could not be resolved; did you mean to call … in main()
77 oneT<int> == 0; // expected-warning {{equality comparison result unused}} \ in main()
78 … // expected-note {{use '=' to turn this equality comparison into an assignment}} \ in main()
79 …// expected-warning {{comparison of function 'oneT<int>' equal to a null pointer is always false}}… in main()
80 // expected-note {{prefix with the address-of operator to silence this warning}} in main()
85 template<typename> void f(); // expected-note{{possible target for call}}
89 x.f<int>; // expected-error{{reference to non-static member function must be called}} in test_rdar9108698()