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