OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:HasNoCStr
(Results
1 - 2
of
2
) sorted by null
/external/clang/test/SemaCXX/
printf-block.cpp
7
class
HasNoCStr
{
10
HasNoCStr
(const char *s): str(s) { }
16
HasNoCStr
hncs(str);
21
// expected-warning@-2{{cannot pass non-POD object of type '
HasNoCStr
' to variadic block; expected type from format string was 'char *'}}
23
// expected-warning@-4{{format specifies type 'char *' but the argument has type '
HasNoCStr
'}}
printf-cstr.cpp
17
class
HasNoCStr
{
20
HasNoCStr
(const char *s): str(s) { }
30
HasNoCStr
hncs(str);
35
printf("%d: %s\n", n, hncs); // expected-warning{{cannot pass non-POD object of type '
HasNoCStr
' to variadic function; expected type from format string was 'char *'}}
38
printf(formatString, hcs, hncs); // expected-warning{{cannot pass object of non-POD type 'HasCStr' through variadic function}} expected-warning{{cannot pass object of non-POD type '
HasNoCStr
' through variadic function}}
Completed in 141 milliseconds