Tanya Lattner | d13e0ae | 2004-11-06 22:29:57 +0000 | [diff] [blame] | 1 | // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null |
| 2 | |
Chris Lattner | 584902e | 2004-09-28 02:29:40 +0000 | [diff] [blame] | 3 | |
| 4 | |
| 5 | struct Pass {} ; |
| 6 | template<typename PassName> |
| 7 | Pass *callDefaultCtor() { return new PassName(); } |
| 8 | |
| 9 | void foo(Pass *(*C)()); |
| 10 | |
| 11 | #include <bits/c++config.h> |
| 12 | #include <bits/stringfwd.h> |
| 13 | #include <bits/char_traits.h> |
| 14 | #include <memory> // For allocator. |
| 15 | #include <bits/basic_string.h> |
| 16 | |
| 17 | bool foo(std::string &X) { |
| 18 | return X.empty(); |
| 19 | } |