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