1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s
3 #pragma clang diagnostic fatal "-Wall"
4 #pragma clang diagnostic fatal "-Wold-style-cast"
6 template <class T
> bool foo0(const long long *a
, T
* b
) {
7 return a
== (const long long*)b
; // expected-error {{use of old-style cast}}
16 bool m1(const long long *a
, T
*b
) const { return foo0(a
, b
); }
19 bool foo1(const long long *a
, int *b
) {