hanchenye-llvm-project/clang/test/Modules/module_map_cwd.c

10 lines
281 B
C

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo 'module X { header "x.h" }' > %t/map
// RUN: echo 'extern int n;' > %t/x.h
// RUN: cd %t
// RUN: %clang_cc1 %s -fmodules -fmodule-map-file=map -fmodules-cache-path=. -verify -I.
// expected-no-diagnostics
#include "x.h"
int *m = &n;