YouCompleteMe/cpp/llvm/tools/clang/test/Modules/on-demand-macros.m
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

14 lines
330 B
Objective-C

// RUN: rm -rf %t
// 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
@__experimental_modules_import CmdLine;
void test() {
#ifdef FOO_RETURNS_INT_PTR
int *ip = foo();
#else
float *fp = foo();
#endif
}