blob: bdba42bbcb51fe3f86ea8396ce2bca6edb36be66 [file] [log] [blame]
Argyrios Kyrtzidis74d28bd2010-06-29 22:47:00 +00001// 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
8class F {
9 void m() {
10 A* a;
11 a->x = 0;
12 }
13};
Richard Smithe85e1762012-04-22 02:13:50 +000014
15template<typename T> class PR12585::future_base::setter {
16public:
17 int f() {
18 return promise<T*>().k;
19 }
20};
21int k = PR12585::future_base::setter<int>().f();