aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/on-demand-macros.m
blob: c33d5ed11e53760e84e8c6f7b9572ed898b3ada4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs -DFOO_RETURNS_INT_PTR -verify %s
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs -verify %s
// expected-no-diagnostics

@import CmdLine;

void test(void) {
#ifdef FOO_RETURNS_INT_PTR
  int *ip = foo();
#else
  float *fp = foo();
#endif
}