2011-10-17 22:55:37 +08:00
|
|
|
// RUN: rm -rf %t
|
2012-01-04 02:24:14 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -F %S/Inputs -DFOO_RETURNS_INT_PTR -verify %s
|
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -F %S/Inputs -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2011-10-17 22:55:37 +08:00
|
|
|
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import CmdLine;
|
2011-10-17 22:55:37 +08:00
|
|
|
|
|
|
|
void test() {
|
|
|
|
#ifdef FOO_RETURNS_INT_PTR
|
|
|
|
int *ip = foo();
|
|
|
|
#else
|
|
|
|
float *fp = foo();
|
|
|
|
#endif
|
|
|
|
}
|