Douglas Gregor | 05edf66 | 2011-10-17 14:55:37 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | 94ad28b | 2012-01-03 18:24:14 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -F %S/Inputs -DFOO_RETURNS_INT_PTR -verify %s |
| 3 | // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -F %S/Inputs -verify %s |
Douglas Gregor | 05edf66 | 2011-10-17 14:55:37 +0000 | [diff] [blame] | 4 | |
Douglas Gregor | 5948ae1 | 2012-01-03 18:04:46 +0000 | [diff] [blame] | 5 | @import CmdLine; |
Douglas Gregor | 05edf66 | 2011-10-17 14:55:37 +0000 | [diff] [blame] | 6 | |
| 7 | void test() { |
| 8 | #ifdef FOO_RETURNS_INT_PTR |
| 9 | int *ip = foo(); |
| 10 | #else |
| 11 | float *fp = foo(); |
| 12 | #endif |
| 13 | } |