16 lines · c
1// RUN: split-file %s %t2// RUN: c-index-test -single-file-parse %t/tu.c 2>&1 | FileCheck %t/tu.c3 4//--- header.h5#define FUNCTION_LIKE_MACRO() 16//--- tu.c7#include "header.h"8// CHECK-NOT: tu.c:[[@LINE+1]]:5: error: function-like macro 'FUNCTION_LIKE_MACRO' is not defined9#if FUNCTION_LIKE_MACRO()10// CHECK: tu.c:[[@LINE+1]]:5: FunctionDecl=then_fn11int then_fn();12#else13// CHECK: tu.c:[[@LINE+1]]:5: FunctionDecl=else_fn14int else_fn();15#endif16