1 /* { dg-options "-fdiagnostics-show-caret" } */
3 /* Adapted from https://gcc.gnu.org/wiki/ClangDiagnosticsComparison */
5 void call_of_non_function_ptr (char **argP
, char **argQ
)
7 (argP
- argQ
)(); /* { dg-error "called object is not a function or function pointer" } */
9 /* { dg-begin-multiline-output "" }
12 { dg-end-multiline-output "" } */
14 argP(); /* { dg-error "called object 'argP' is not a function or function pointer" } */
16 /* { dg-begin-multiline-output "" }
19 { dg-end-multiline-output "" }
20 { dg-begin-multiline-output "" }
21 void call_of_non_function_ptr (char **argP, char **argQ)
23 { dg-end-multiline-output "" } */