1// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -F %S/Inputs -DFOO_RETURNS_INT_PTR -verify %s
3// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -F %S/Inputs -verify %s
4// expected-no-diagnostics
5
6@import CmdLine;
7
8void test() {
9#ifdef FOO_RETURNS_INT_PTR
10  int *ip = foo();
11#else
12  float *fp = foo();
13#endif
14}
15