Dan Gohman | fea1dd0 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 1 | // RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null |
Tanya Lattner | d13e0ae | 2004-11-06 22:29:57 +0000 | [diff] [blame] | 2 | |
Chris Lattner | 584902e | 2004-09-28 02:29:40 +0000 | [diff] [blame] | 3 | struct Pass {} ; |
| 4 | template<typename PassName> |
| 5 | Pass *callDefaultCtor() { return new PassName(); } |
| 6 | |
| 7 | void foo(Pass *(*C)()); |
| 8 | |
Chris Lattner | 2911090 | 2007-04-16 06:14:28 +0000 | [diff] [blame] | 9 | #include <string> |
Chris Lattner | 584902e | 2004-09-28 02:29:40 +0000 | [diff] [blame] | 10 | |
| 11 | bool foo(std::string &X) { |
| 12 | return X.empty(); |
| 13 | } |