Debian Codegraph @

clang/test/Modules/on-demand-macros.m

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