| Richard Smith | acf796b | 2012-11-28 06:23:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x c++ -include %S/Inputs/cxx-method.h -verify %s |
| Douglas Gregor | e5a54b6 | 2011-08-30 20:49:19 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -x c++ -emit-pch %S/Inputs/cxx-method.h -o %t |
| 3 | // RUN: %clang_cc1 -include-pch %t -verify %s |
| Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 4 | // expected-no-diagnostics |
| Argyrios Kyrtzidis | 9bedef6 | 2009-07-14 03:18:53 +0000 | [diff] [blame] | 5 | |
| 6 | void S::m(int x) { } |
| Douglas Gregor | e5a54b6 | 2011-08-30 20:49:19 +0000 | [diff] [blame] | 7 | |
| 8 | S::operator char *() { return 0; } |
| 9 | |
| 10 | S::operator const char *() { return 0; } |
| Richard Smith | acf796b | 2012-11-28 06:23:12 +0000 | [diff] [blame] | 11 | |
| 12 | struct T : S {}; |
| 13 | |
| 14 | const T a = T(); |
| 15 | T b(a); |