cxx-using.cpp 424 B

1234567891011121314
  1. // Test this without pch.
  2. // RUN: %clang_cc1 -include %S/cxx-using.h -fsyntax-only -verify %s
  3. // Test with pch.
  4. // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-using.h
  5. // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
  6. void m() {
  7. D s;
  8. s.f(); // expected-error {{no matching member}}
  9. }
  10. // [email protected]:9 {{candidate function}}
  11. // [email protected]:15 {{candidate function}}