HomeSort by relevance Sort by last modified time
    Searched refs:HasNoCStr (Results 1 - 2 of 2) sorted by null

  /external/clang/test/SemaCXX/
printf-block.cpp 5 class HasNoCStr {
8 HasNoCStr(const char *s): str(s) { }
14 HasNoCStr hncs(str);
17 block(n, "%s %s", hncs, n); // expected-warning{{cannot pass non-POD object of type 'HasNoCStr' to variadic block; expected type from format string was 'char *'}} expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
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 174 milliseconds