xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/cxx-method.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++ -include %S/Inputs/cxx-method.h -verify %s
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++ -emit-pch %S/Inputs/cxx-method.h -o %t
3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -include-pch %t -verify %s
4*f4a2713aSLionel Sambuc // expected-no-diagnostics
5*f4a2713aSLionel Sambuc 
m(int x)6*f4a2713aSLionel Sambuc void S::m(int x) { }
7*f4a2713aSLionel Sambuc 
operator char*()8*f4a2713aSLionel Sambuc S::operator char *() { return 0; }
9*f4a2713aSLionel Sambuc 
operator const char*()10*f4a2713aSLionel Sambuc S::operator const char *() { return 0; }
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc struct T : S {};
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc const T a = T();
15*f4a2713aSLionel Sambuc T b(a);
16