aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeCompletion/macros-in-modules.c
blob: 82c34e0e8f6f9b9d1206bb641088d77a40695bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: rm -rf %t && mkdir %t
// RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap
// RUN: echo '#define FOO_MACRO 42' > %t/foo.h
// RUN: c-index-test -code-completion-at=%s:%(line+5):1 -I %t %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:%(line+4):1 -I %t -fmodules -fmodules-cache-path=%t %s | FileCheck %s

#include "foo.h"
int x =
/*here*/1;

// CHECK: FOO_MACRO