1 // Test this without pch. 2 // RUN: %clang_cc1 -include %S/cxx-friends.h -fsyntax-only -verify %s 3 4 // Test with pch. 5 // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-friends.h 6 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 7 8 // expected-no-diagnostics 9 10 class F { 11 void m() { 12 A* a; 13 a->x = 0; 14 } 15 }; 16 17 template<typename T> class PR12585::future_base::setter { 18 public: 19 int f() { 20 return promise<T*>().k; 21 } 22 }; 23 int k = PR12585::future_base::setter<int>().f(); 24