2012-11-28 14:23:12 +08:00
|
|
|
// RUN: %clang_cc1 -x c++ -include %S/Inputs/cxx-method.h -verify %s
|
2011-08-31 04:49:19 +08:00
|
|
|
// RUN: %clang_cc1 -x c++ -emit-pch %S/Inputs/cxx-method.h -o %t
|
|
|
|
// RUN: %clang_cc1 -include-pch %t -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-07-14 11:18:53 +08:00
|
|
|
|
|
|
|
void S::m(int x) { }
|
2011-08-31 04:49:19 +08:00
|
|
|
|
|
|
|
S::operator char *() { return 0; }
|
|
|
|
|
|
|
|
S::operator const char *() { return 0; }
|
2012-11-28 14:23:12 +08:00
|
|
|
|
|
|
|
struct T : S {};
|
|
|
|
|
|
|
|
const T a = T();
|
|
|
|
T b(a);
|