Douglas Gregor | 05edf66 | 2011-10-17 14:55:37 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
2 | // RUN: %clang_cc1 -fmodule-cache-path %t -F %S/Inputs -DFOO_RETURNS_INT_PTR -verify %s | ||||
3 | // RUN: %clang_cc1 -fmodule-cache-path %t -F %S/Inputs -verify %s | ||||
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 | } |