blob: c24ad9297588a1f1581f9ac502ee28963adac261 [file] [log] [blame]
Richard Smithacf796b2012-11-28 06:23:12 +00001// RUN: %clang_cc1 -x c++ -include %S/Inputs/cxx-method.h -verify %s
Douglas Gregore5a54b62011-08-30 20:49:19 +00002// RUN: %clang_cc1 -x c++ -emit-pch %S/Inputs/cxx-method.h -o %t
3// RUN: %clang_cc1 -include-pch %t -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00004// expected-no-diagnostics
Argyrios Kyrtzidis9bedef62009-07-14 03:18:53 +00005
6void S::m(int x) { }
Douglas Gregore5a54b62011-08-30 20:49:19 +00007
8S::operator char *() { return 0; }
9
10S::operator const char *() { return 0; }
Richard Smithacf796b2012-11-28 06:23:12 +000011
12struct T : S {};
13
14const T a = T();
15T b(a);