Chris Lattner | 584902e | 2004-09-28 02:29:40 +0000 | [diff] [blame^] | 1 | |
2 | |||||
3 | struct Pass {} ; | ||||
4 | template<typename PassName> | ||||
5 | Pass *callDefaultCtor() { return new PassName(); } | ||||
6 | |||||
7 | void foo(Pass *(*C)()); | ||||
8 | |||||
9 | #include <bits/c++config.h> | ||||
10 | #include <bits/stringfwd.h> | ||||
11 | #include <bits/char_traits.h> | ||||
12 | #include <memory> // For allocator. | ||||
13 | #include <bits/basic_string.h> | ||||
14 | |||||
15 | bool foo(std::string &X) { | ||||
16 | return X.empty(); | ||||
17 | } |